站长资讯网
最全最丰富的资讯网站

javascript中的关键字有哪些

关键字有:break、do、instanceof、typeof、case、else、new、var、catch、finally、return、void、continue、for、switch、while、if、try、this、with等。

javascript中的关键字有哪些

本教程操作环境:windows7系统、javascript1.8.5版、Dell G3电脑。

JavaScript中关键字和保留字

不能把关键字、保留字、true、false和null用作标识符。

JavaScript中的关键字可用于表示控制语句的开始或结束,或者用于执行特定操作等。按照规则,关键字也是语言保留的,不能用作标识符。

关键字

break do instanceof typeof case
else new var catch finally
return void continue for switch
while default if throw delete
in try function this with
debugger false true null

保留字

class enum extends super
export import impelements let
public yield interface package
static const

赞(0)
分享到: 更多 (0)