What are the keywords of javascript

青灯夜游
Release: 2021-10-14 17:19:05
Original
14150 people have browsed it

Keywords include: break, delete, if, this, while, case, do, in, throw, with, catch, else, instanceof, try, continue, finally, new, typeof, for, return, etc. .

What are the keywords of javascript

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

Javascript keywords (Keywords) refer to those words that have specific meanings in the Javascript language and become part of the Javascript syntax. They are a set of names (or commands) used internally in the JavaScript language.

JavaScript Keywords
break delete if this while
case do in throw with
catch else instanceof try
continue finally new typeof
debugger(ECMAScript 5 new) for return var
default function switch void

Javascript keywords cannot be used as variable names and function names. Using Javascript keywords as variable names or function names will cause compilation errors in Javascript during the loading process.

Keywords in js 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.

[Recommended learning: javascript advanced tutorial]

The above is the detailed content of What are the keywords of javascript. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template