JS Base _ Identifier

Source: Internet
Author: User

1 <!DOCTYPE HTML>2 <HTML>3     <Head>4         <MetaCharSet= "UTF-8">5         <title></title>6         <Scripttype= "Text/javascript">7             8             /*9 * IdentifiersTen *-All that can be named by us in JS can be called identifiers. One *-for example: variable names, function names, property names belong to identifiers A *-The following rules apply when naming an identifier: - * 1. Identifiers can contain letters, numbers, _, $ - * 2. Identifiers cannot begin with a number the * 3. Identifiers cannot be keywords or reserved words in ES - * 4. The identifier is usually used in the hump naming method - *-Initial letter lowercase, first letter of each word capitalized, remaining letter lowercase - * HelloWorld xxxyyyzzz +              *  - *-JS underlying save identifier is actually the Unicode encoding used, + * So theoretically, all the content contained in the Utf-8 can be used as an identifier A              */ at             /* - var if = 123; -              - Console.log (if); if is a keyword, error: "Uncaught syntaxerror:unexpected token if" -              -             */ in              -              to             //don't use it that way. +             varhoe wo Day copse= 789; - console.log (Hoe wo Day copse); the              *              $         </Script>Panax Notoginseng     </Head> -     <Body> the     </Body> + </HTML>

JS Base _ Identifier

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.