关键字与保留字

关键字

有特殊含义的字符,JavaScript 内置的一些英语词汇。

break do in typeof
case else instanceof var
catch export new void
class extends return while
const finally super with
continue for switch yoield
debugger function this
default if throw
delete import try

保留字

现在还不是关键字,但是未来可能成为关键字。

await interface protected static
enum let private
implements package public