以下的保留字不可以用作变量,函数名,对象名等,其中有的保留字是为以后JAVASCRIPT扩展用的.
- abstract
- boolean
- break
- byte
- case
- catch
- char
- class
- const
- continue
- default
- do
- double
- else
| - extends
- false
- final
- finally
- float
- for
- function
- goto
- if
- implements
- import
- in
- instanceof
| - int
- interface
- long
- native
- new
- null
- package
- private
- protected
- public
- return
- short
- static
| - super
- switch
- synchronized
- this
- throw
- throws
- transient
- true
- try
- var
- void
- while
- with
|