关键字有:break、do、instanceof、typeof、case、else、new、var、catch、finally、return、void、continue、for、switch、while、if、try、this、with等。
本教程操作环境: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
更多编程相关知识,请访问:编程视频!!
以上就是javascript中的关键字有哪些的详细内容!
查看更多关于javascript中的关键字有哪些的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did67063
javascript中的关键字有哪些
阅读:49次