JavaScript预定义了一系列全局变量和函数,在自定义变量和函数式要避免使用这些预定义的名称:
| arguments | encodeURI | Infinity | Number | RegExp |
| Array | encodeURIComponent | isFinite | Object | String |
| Boolean | Error | isNaN | parseFloat | SyntaxError |
| Date | eval | JSON | parseInt | TypeError |
| decodeURI | EvalError | Math | RangeError | undefined |
| decodeURIComponent | Function | NaN | ReferenceError | URIError |