added a link to wikipedia
This commit is contained in:
parent
2cca9a9d09
commit
74563bad32
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ We also can use underscore `_` as the separator:
|
||||||
let billion = 1_000_000_000;
|
let billion = 1_000_000_000;
|
||||||
```
|
```
|
||||||
|
|
||||||
Here the underscore `_` plays the role of the "syntactic sugar", it makes the number more readable. The JavaScript engine simply ignores `_` between digits, so it's exactly the same one billion as above.
|
Here the underscore `_` plays the role of the "[syntactic sugar](https://en.wikipedia.org/wiki/Syntactic_sugar)", it makes the number more readable. The JavaScript engine simply ignores `_` between digits, so it's exactly the same one billion as above.
|
||||||
|
|
||||||
In real life though, we try to avoid writing long sequences of zeroes. We're too lazy for that. We'll try to write something like `"1bn"` for a billion or `"7.3bn"` for 7 billion 300 million. The same is true for most large numbers.
|
In real life though, we try to avoid writing long sequences of zeroes. We're too lazy for that. We'll try to write something like `"1bn"` for a billion or `"7.3bn"` for 7 billion 300 million. The same is true for most large numbers.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue