Home >Web Front-end >JS Tutorial >What are the reserved words in JavaScript?
The reserved words of JavaScript are: abstract, double, goto, native, static, boolean, enum, implements, package, super, byte, char, class, const, public, etc.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
Reserved words of JavaScript
Reserved words are a set of names (or commands) prepared for use within the JavaScript language. These names currently have no specific purpose and are reserved for JavaScript upgrades. Users are advised not to use them. Specific instructions are shown in the table.
abstract | double | goto | native | static |
enum | implements | package | super | |
export | import | private | synchronized | |
extends | int | protected | throws | |
final | interface | public | transient | |
#float | long | short | volatile |
encodeURL | Infinity | Number | RegExp | ##Array |
isFinite | Object | String | Boolean | |
isNaN | parseFloat | SyntaxError | Date | |
JSON | parseInt | TypeError | decodeURL | |
Math | RangeError | undefined | ##decodeURLComponent | |
NaN | ReferenceError | URLError |
Whether in strict mode or non-strict mode, do not use the reserved words listed above when defining variable names, function names, or attribute names. [Related recommendations:javascript learning tutorial]
The above is the detailed content of What are the reserved words in JavaScript?. For more information, please follow other related articles on the PHP Chinese website!