Javascript reserved words

Reserved words in Javascript

The reserved words in this list have special meaning within Javascript so cannot be used as JavaScript variables, functions, methods, or object names. Some of these reserved words are currently used in JavaScript; others are reserved for future use.

Naming a variable var is probably the most common mistake. If you really are stuck for a meaningful variable name, call it myVar.

abstract
boolean
break
byte
case
catch
char
class
const
continue
debugger
default
delete
do
double













else
enum
export
extends
false
final
finally
float
for
function
goto
if
implements
import
in













instanceof
int
interface
long
native
new
null
package
private
protected
public
return
short
static
super













switch
synchronized
this
throw
throws
transient
true
try
typeof
var
void
volatile
while
with