In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "what is the role of javascript keywords", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "what is the role of javascript keywords" can help you solve your doubts.
In JavaScript, keywords refer to those words that have a specific meaning in the JavaScript language and become part of the JavaScript syntax; keywords cannot be used as variable names and function names, and if you use keywords as variable names or function names, it will cause compilation errors in the loading process of JavaScript.
The operating environment of this tutorial: windows10 system, javascript1.8.5 version, Dell G3 computer.
What does the keyword of javascript mean?
The Javascript keyword (Reserved Words) refers to those words that have a specific meaning in the Javascript language and become part of the Javascript syntax. The Javascript keyword cannot be used as variable and function names. Using the Javascript keyword as the variable name or function name will cause Javascript to have compilation errors during loading.
Keyword is reserved and cannot be used as a variable or function name
Here is just a rough list of functions, in fact, I have learned Java or JS to use more familiar, these are basically known.
The name acts as break to exit the loop immediately, preventing the repeated execution of any code case with switch to complete judgment catch with try for error judgment continue to exit the current loop, and according to the control expression to allow the next cycle to proceed with default with switch. When the condition does not exist, use this delete to delete an attribute do for do-while, and then test the loop That is, the exit condition calculates else with if condition judgment after executing the code inside the loop, the jump finally for conditional selection is used to prevent the occurrence of an exception, and the forfor statement will be handled regardless of whether the exception occurs or not. the loop statement function function keyword ifif statement is used to judge in1. With for traversal object, 2. Determine whether an attribute belongs to an object instanceof whether an object is an instance of another object new creates a new object return exits from the current function, and returns a value switch from that function to make up for the multiple judgment statement this of if always points to the object calling the method throw throws an exception try with catch to make an error determination of the data type of the typeof detection variable var declaration variable statement does not return a value whilewhile judgment statement The withwith statement can be used to set the scope of the code in a specific object, either with do to make pre-judgment, or independently to do post-judgment.
JS reserved word
Name abstractbooleanbytecharclassconstdebuggerdoubleenumexportextendsfinalfloatgotoimplementsimportintinterfacelongnativepackageprivateprotectedpublicshortstaticsupersynchronizedthrowstransientvolatile
After reading this, the article "what is the role of javascript keywords" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.