以下这些是保留字,不能用于变量、函数名、过程、和对象名。The following are reserved as existing keywords by the ECMAScript specification:
- break
- case
- catch
- continue
- default
- delete
- do
- else
- finally
- for
- function
- if
- in
- instanceof
- new
- return
- switch
- this
- throw
- try
- typeof
- var
- void
- while
- with
以下是ECMAScript特性关键字:
- 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
Take note that while not specified in ECMA-262, const, export, and import have been implemented in Mozilla.