0 votes
in JavaScript by
Can I use reserved words as identifiers?

1 Answer

0 votes
by

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
...