Why 42.toString() fails in JS?
问题 Disclaimer Guys, I DO aware of Why does 10..toString() work, but 10.toString() does not? question existence, but the thing is that it doesn't provide the formal explanation. The specification's interpretation of the . character in that particular position is that it will be a decimal. This is defined by the numeric literal syntax of ECMAScript. Without reference to a standard isn't trustable enough The question body I subconsciously understand that 42..toString() is treated by a parser as a