Kata Tertahan ECMAScript

This section provides a complete list of ECMAScript reserved words.

Kata Tertahan ECMAScript

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

Reserved words are words reserved for future keywords. 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 the reserved words are used as variable names or function names, it is likely that no error messages will be received unless the reserved words are implemented by future browsers. When the browser implements it, the word will be considered as a keyword, and keyword errors will occur accordingly.