In Ruby you may say:
n = 10_000
or
n = 10000
They are identical. I think you can also do something like this in Perl. This is a very nifty thing, to make large numbers more human readable.
My question is really two parts:
Is there a Javascript equivalent? Because I would definitely use it.
What do you call this underscore character, syntactically? I bet an experienced programmer can field this pretty easily, but I'm having a heck of a time trying to use the internet for a reverse dictionary. Such information I think would be useful to me in learning future languages. And it's absolutely driving me crazy, that I don't know how to describe it.
In Ruby you may say:
n = 10_000
or
n = 10000
They are identical. I think you can also do something like this in Perl. This is a very nifty thing, to make large numbers more human readable.
My question is really two parts:
Is there a Javascript equivalent? Because I would definitely use it.
What do you call this underscore character, syntactically? I bet an experienced programmer can field this pretty easily, but I'm having a heck of a time trying to use the internet for a reverse dictionary. Such information I think would be useful to me in learning future languages. And it's absolutely driving me crazy, that I don't know how to describe it.
- 1) No. 2) "Place separator", perhaps? – r3mainer Commented Dec 3, 2013 at 11:44
2 Answers
Reset to default 9Numeric Separators are now a feature of Javascript. (