Javascript
保留字
(Javascript Reserved Words)
Javascript
保留字
(Reserved Words)
是指在
Javascript
语言中有特定含义,成为
Javascript
语法中一部分的那些字。
Javascript
保留字是不能作为变量名和函数名使用的。
使用
Javascript
保留字作为变量名或函数名,
会使
Javascript
在载入过程中出现编译错误。
Javascript
保留字列表:
break
delete
function
return
typeof
case
do
if
switch
var
catch
else
in
this
void
continue
false
instanceof
throw
while
debugger
finally
new
true
with
default
for
null
try
Javascript
未来保留字
(Javascript Future Reserved Words)
Javascript
还有一些未来保留字,这些字虽然现在没有用到
Javascript
语言中,但是将来
有可能用到。
Javascript
未来保留字列表:
abstract
double
goto
native
static
boolean
enum
implements
package
super
byte
export
import
private
synchronized
char
extends
int
protected
throws
class
final
interface
public
transient
const
float
long
short
volatile
c_a_3();
JavaScript
中不能作为变量名的关键字和保留字总结
JavaScript
中不能作为变量名的关键字和保留字总结:
1
、
js
中的关键字:
break
case
catch
continue
default
delete
do
else
finally
for
function
if
in
instanceof
new
return
switch
this
throw
try
typeof
var
void
while
with
2
、
js
中的保留字:
abstract
boolean
byte
char
class
const
debugger
double
enum
export
extends
final
float
goto
implements
import
int
interface
long
native
package
private
protected
public
short
static
super
synchronized
throws
transient
volatile
with
break
delete
function
return
typeof
case
do
if
switch
var
catch
else
in
this
void
continue
false
instanceof
throw
while
debugger
finally
new
true
with
default
for
null
try
1269

被折叠的 条评论
为什么被折叠?



