+ -

javascript中的关键字有哪些

时间:2021-04-23

来源:互联网

在手机上看
手机扫描阅读

今天PHP爱好者给大家带来javascript中的关键字有哪些,关键字有: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中的关键字有哪些的详细内容,更多请关注php爱好者其它相关文章!