1,ECMA-262描述了一组具备特定用途的关键字,这些关键字能够用于表示控制语句的开始或者结束,或者用于执行特定操做等。关键字是语言保留有的,不能用作标示符。this
2,如下是ECMAScript的所有关键字:spa
break | do | instanceof | typeof |
case | else | new | var |
catch | finally | return | void |
continue | for | switch | while |
debugger | function | this | with |
default | if | throw | delete |
in | try | class | const |
3,ECMAScript还有另一组保留字,保留字没有特定的用途,但它们未来可能被用做关键字debug
第五版非严格模式下以下:ip
class | enum | extends | super |
const | export | import |
第五版严格模式以下:it
implements | package | public |
interface | private | static |
let | protected | yield |
4,无论是关键字仍是保留字,都不能看成标示符。io