Skip to content

Commit 6236eb8

Browse files
authored
Merge pull request #3797 from pj-szdm/patch-1
better wording
2 parents 26daef2 + b36823a commit 6236eb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/02-number/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Common use cases for this are:
118118
```warn header="Two dots to call a method"
119119
Please note that two dots in `123456..toString(36)` is not a typo. If we want to call a method directly on a number, like `toString` in the example above, then we need to place two dots `..` after it.
120120
121-
If we placed a single dot: `123456.toString(36)`, then there would be an error, because JavaScript syntax implies the decimal part after the first dot. And if we place one more dot, then JavaScript knows that the decimal part is empty and now goes the method.
121+
If we placed a single dot: `123456.toString(36)`, then there would be an error, because JavaScript syntax implies the decimal part after the first dot. And if we place one more dot, then JavaScript knows that the decimal part is empty and now uses the method.
122122
123123
Also could write `(123456).toString(36)`.
124124

0 commit comments

Comments
 (0)