Created
January 12, 2019 17:17
-
-
Save 1kohei1/2966c6d9a031ea81c7fd5378ea5dcc29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42.toFixed(3); // SyntaxError | |
// This is invalid since it first recognizes . as fraction point. | |
(42).toFixed(3); // "42.000" | |
0.42.toFixed(3); // "0.420" | |
42..toFixed(3); // "42.000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment