In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "is javascript case-sensitive?". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Distinguish. Javascript is a strictly case-sensitive language. When entering keywords, variable names, function names and all identifiers, it must adopt a consistent character case form; in order to avoid input confusion and syntax errors, code is generally written in lowercase characters.
The operating environment of this tutorial: windows7 system, javascript1.8.5 version, Dell G3 computer.
Javascript is case sensitive.
Javascript is a strictly case-sensitive language, so Hello and hello are two different identifiers.
When entering keywords, variable names, function names, and all identifiers, you must use consistent character case.
To avoid typing confusion and syntax errors, it is recommended that code be written in lowercase characters, and uppercase in the following special cases:
1. The first letter of the constructor is recommended to be capitalized. Constructors are different from ordinary functions.
Example
The following example calls the predefined constructor Date (), creates a time object, and then converts the time object to a string to display.
D = new Date (); / / get the current date and time [xss_clean] (d.toString ()); / / display date
2. If the identifier consists of multiple words, consider using camel nomenclature-except for the first word, the first letter of the latter word is capitalized. For example:
TypeOf (); printEmployeePaychecks ()
Tip: the above are all established general habits and do not constitute a mandatory requirement. Users can name them according to their personal habits.
Note, however, that HTML is not case-sensitive, which is easily confused because it is closely related to the client-side JavaScript. Many JavaScript objects and attributes have the same name as the HTML tags and properties they represent.
These tags and property names can be entered in any case in HTML, but they are usually lowercase in JavaScript. For example, in HTML, the event handler nature onclick is usually declared as onClick, but only onclick can be used in JavaScript code.
This is the end of the content of "javascript is case sensitive". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.