What are Reserved Words in JavaScript?

JavascriptWeb DevelopmentFront End Technology

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


raja
Updated on 13-Jun-2020 11:40:24

Advertisements