ECMAScript Reserved Words

This section provides a complete list of ECMAScript reserved words.

ECMAScript Reserved Words

ECMA-262 defines a set of ECMAScript supportedReserved Word (Reserved Word).

Reserved words are words reserved for future keywords in some sense. Therefore, reserved words cannot be used as variable names or function names.

The complete list of reserved words in ECMA-262 Third Edition is as follows:

abstract
boolean
byte
char
class
const
debugger
double
enum
export
extends
final
float
goto
implements
import
int
interface
long
native
package
private
protected
public
short
static
super
synchronized
throws
transient
volatile

Note:If a reserved word is used as a variable name or function name, it is likely that no error message will be received unless the reserved word is implemented by the browser in the future. When the browser implements it, the word will be treated as a keyword, and a keyword error will occur.