JS Coding Questions Logo
JS Coding Questions
#166💼 Interview💻 Code

Can I use reserved words as identifiers

Advertisement

728x90

No, you cannot use the reserved words as variables, labels, object or function names. Let's see one simple example,

javascript
1var else = "hello"; // Uncaught SyntaxError: Unexpected token else

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 81

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
166of476