Appendix E. Reserved and Special Words

Like most languages, JavaScript has a number of keywords that either cannot or should not be used as identifiers for functions and variables. They're either reserved for future use in the language, are currently part of some version of the language, or are used in critical components or extensions that users have (perhaps as part of their browsers).

abstract

as

boolean

break

byte

case

catch

char

class

console

const

continue

debug

debugger

default

delete

do

double

else

enum

enumerator

export

extends

false

final

finally

float

for

function

goto

if

implements

import

in

instanceof

int

interface

is

long

namespace

native

new

null

package

private

protected

public

return

short

static

super

switch

synchronized

this

throw

throws

transient

true

try

typeof

use

var

void

volatile

while

with

  

Get JavaScript® Programmer's Reference 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.