Skip to main content
InterviewHubPRO
Section Overview
Q170

Question 170 of 536

Part 3: DOM, Event Flow, Timers & Browser APIs (104 - 173)

32%
JavaScript & V8 Internals (536 Qs)•Part 3: DOM, Event Flow, Timers & Browser APIs (104 - 173)

Can I use reserved words as identifiers

mid LevelCode ExampleHTTP & REST APIs

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

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