What are Reserved Words in JavaScript?


Reserved words cannot be used as JavaScript variables, functions, methods, loop labels, or any object names.

Here are the reserved words in JavaScript −

abstract
Else
instanceof
switch
boolean
Enum
int
synchronized
break
Export
interface
this
byte
Extends
long
throw
case
False
native
throws
catch
Final
new
transient
char
Finally
null
true
class
Float
package
try
const
For
private
typeof
continue
Function
protected
var
debugger
Goto
public
void
default
If
return
volatile
delete
implements
short
while
Do
Import
static
with
double
In
super


Updated on: 13-Jun-2020

326 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements