JavaScript Reserved Words

Variable names in JavaScript can contain letters, numbers, underscores, and the dollar sign. So a stand alone "$" is a legal variable.  You can not start with a number, and names are case-sensitive.

This list includes all reserved words, global properties, and methods in one long, single column, alphabetical, list for fast look up.  You can not use for JavaScript variables, or identifiers, any of the below words:

abstract
alert
boolean
blur
byte
case
catch
char
class
clearIntervaL
clearTimeout
close
confirm
const
continue
debugger
decodeURI
decodeURIComponents
default
delete
do
double
else
encodeURI
encodeURIComponents
enum
escape
eval
export
extends
false
final
finally
float
focus
for
function
getComputedStyle
goto
if
implements
import
in
Infinity
instanceof
int
interface
isFinite
isNaN
long
moveBy
moveTo
NaN
native
new
null
open
package
parseFloat
parseInt
print
private
prompt
protected
public
resizeBy
resizeTo
return
scroll
scrollBy
scrollTo
setInterval
setTimeout
short
static
super
switch
synchronized
this
throw
throws
transient
true
try
typeof
undefined
unescape
var
void
volatile
while
with

Comments are closed.