You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/05-data-types/02-number/article.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Imagine we need to write 1 billion. The obvious way is:
12
12
let billion =1000000000;
13
13
```
14
14
15
-
But in real life we usually avoid writing a long string of zeroes as it's easy to mistype. Also, we are lazy. We will usually write something like `"1bn"` for a billion or `"7.3bn"` for 7 billion 300 million. The same is true for most large numbers.
15
+
But in real life, we usually avoid writing a long string of zeroes as it's easy to mistype. Also, we are lazy. We will usually write something like `"1bn"` for a billion or `"7.3bn"` for 7 billion 300 million. The same is true for most large numbers.
16
16
17
17
In JavaScript, we shorten a number by appending the letter `"e"` to the number and specifying the zeroes count:
0 commit comments