JavaScript 中的保留关键字

2022-08-30 02:08:03

保留了哪些 JavaScript 关键字(函数名称、变量等)?


答案 1

这是我的诗,它包括JavaScript中的所有保留关键字,并致力于那些当下保持诚实的人,而不仅仅是试图得分:

Let this long package float, 
Goto private class if short.
While protected with debugger case,  
Continue volatile interface.
Instanceof super synchronized throw, 
Extends final export throws.  

Try import double enum?  
- False, boolean, abstract function, 
Implements typeof transient break!
Void static, default do,  
Switch int native new. 
Else, delete null public var 
In return for const, true, char
…Finally catch byte.

答案 2

我们应该链接到实际的信息来源,而不仅仅是谷歌的热门信息。

http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Reserved_Words

JScript 8.0:http://msdn.microsoft.com/en-us/library/ttyab5c8.aspx