I read some where else that following is illegal
var 3po = true;
but
var highNoon = false;
is legal.
Could someone explain what is all this means? Why the first statement is illegal while the second is legal?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you mean legal as in Syntax-wise?
The first example will give you a SyntaxError, the reason is that variables should not begin with a number.