Appendix C. ECMAScript Reserved Keywords

All of the words in the following table are reserved for use by the ECMAScript interpreter built into scriptable browsers. You may not use these words as identifiers for variables, functions, or objects. A majority of these words are already used by current implementations of JavaScript, while others may become part of the vocabulary

abstract

double

in

super

boolean

else

instanceof

switch

break

enum

int

synchronized

byte

export

interface

this

case

extends

long

throw

catch

final

native

throws

char

finally

new

transient

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

The following case-sensitive words may not be used as identifier names in scripts using ECMA for XML (E4X) scripts (currently supported only in Mozilla):

each

namespace

xml

Get JavaScript & DHTML Cookbook, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.