Home  >  Article  >  Web Front-end  >  What are the keywords in javascript

What are the keywords in javascript

青灯夜游
青灯夜游Original
2021-04-07 17:08:348387browse

Keywords include: break, do, instanceof, typeof, case, else, new, var, catch, finally, return, void, continue, for, switch, while, if, try, this, with, etc. .

What are the keywords in javascript

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

#breakdo instanceoftypeofcase##elsereturnwhile indebugger##Reserved words





new var catch finally
void continue for switch
default if throw delete
try function this with
false true null


#classenumimportyieldconstProgramming Video! !




extends super export
impelements let public
interface package static


##For more programming-related knowledge, please visit:

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn