Is there any more complete list than Mozilla’s about reserved words?
It lacks words like parseFloat, toString, prototype, etc.
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.
parseFloat,toStringandprototypeare not reserved words. Just because they sometimes have a special meaning, doesn’t mean you can’t declare variables with their names;The ES5 standard contains a list of reserved words as well, but it should match the list given by MDN:
It might also be of interest to you that the strict varient of ES5 adds additional words to the reserved list;