Home > Article > Web Front-end > What are the keywords in javascript
Keywords include: break, do, instanceof, typeof, case, else, new, var, catch, finally, return, void, continue, for, switch, while, if, try, this, with, etc. .
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
Keywords and reserved words in JavaScript
You cannot use keywords, reserved words, true, false and null as identifiers.
Keywords in JavaScript can be used to indicate the beginning or end of a control statement, or to perform specific operations, etc. As a rule, keywords are also language reserved and cannot be used as identifiers.
Keywords
do | instanceof | typeof | case | |
new | var | catch | finally | |
void | continue | for | switch | |
default | if | throw | delete | |
try | function | this | with | |
false | true | null |
extends | super | export | |
impelements | let | public | |
interface | package | static | |
##For more programming-related knowledge, please visit: | Programming Video
The above is the detailed content of What are the keywords in javascript. For more information, please follow other related articles on the PHP Chinese website!