javascript学习笔记---ECMAScript语法(关键字,保留字)

关键字,保留字。这个没什么可说的,

关键字:

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
不能作为变量名称,或者方法名称。否则可能得到诸如 "Identifier Expected"(应该有标识符、期望标识符)这样的错误消息。

保留字:
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
顾名思义,浏览器的保留字,一旦浏览器实现了保留字的功能的功能,那么保留字将晋级为关键字,所以建议不要使用保留字。
posted @ 2014-05-27 17:35  yi-  阅读(190)  评论(0编辑  收藏  举报