What's the difference between the following code?
var a = 1;
a.toString(); // outputs: "1"
But this throws an error:
1.toString();
SyntaxError: Unexpected token ILLEGAL
Why? Why does the first code work but the second code throws an error?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…