FrontendDeveloper.in

JavaScript question detail

Can I use reserved words as identifiers

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

var else = "hello"; // Uncaught SyntaxError: Unexpected token else
Back to all JavaScript questions
Get LinkedIn Premium at Rs 399