In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-21 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 reserved word of ES6", the content is detailed, the steps are clear, and the details are handled properly. I hope that this article "what is the reserved word of ES6" can help you solve your doubts.
ES6 reserved word: 1, enum (always reserved); 2, reserved word in strict mode is implements, package, public, interface, protected, static, let, private;3, reserved word in module code is await.
This article operating environment: windows10 system, Vue2.9.6 version, DELL G3 computer.
What are the reserved words of ES6?
ES6 reserved word
1. Always keep:
Enum
2. Keep it in strict mode:
Implements 、 package 、 public 、 interface 、 protected 、 static 、 let 、 private
3. Keep the module code:
Await
Expand knowledge:
ES6 keyword
JavaScript takes out some identifiers as its own keywords. Therefore, these keywords can no longer be used as identifiers in the program.
JavaScript also retains some keywords that are not used in the current language version, but may be used in future versions. ES5 retains these keywords, which we call reserved words:
Class const enum export extendes inport super
It is worth noting that some of these reserved words are already in use in ES6.
In addition, there are some keywords that are legal in normal JS code, but reserved in strict mode:
Implements let private public yield interface package protected static
Strict mode also imposes strict restrictions on the use of the following identifiers, which are not exactly reserved words, but cannot be used as variable names, function names, or parameter names:
Arguments eval
In addition, there are many global variables and functions built into JS, so we should avoid using their names as variable names and function names, which is easy to understand, such as the well-known alert method. If you define a function whose name is alert, how do you play with the original alert? :
After reading this, the article "what is the reserved word of ES6" has been introduced. If you want to master the knowledge 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.