JavaScript依赖于全局变量来进行连接,所有编译单元的所有顶级变量被撮合到一个被称为全局对象的公共命名空间中。这是一个糟糕的事情,因为全局变量是魔鬼,并且在JavaScript中它们是基础性的。 JavaScript保留字: 代码如下: abstract boolean break byte case catch char class const continue debugger default delete do double esle enum export extends false final finally float for function goto if implements import in instanceof int interface long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var volatile void while with