JavaScript Learning-identifiers, keywords, reserved words

Source: Internet
Author: User

I am a beginner, blog essays are basically a record of their own learning knowledge, the primary level. The great god please ignore, thank you.

* Identifiers

The so-called identifier refers to a variable, function, attribute name, or function parameter.

The first character must be a letter, a glide line, and a dollar sign.

Other characters can be letters, glide lines, dollar signs, or numbers.

* Key Words

Keywords are used to denote the start and end of a control statement, or to perform a specific operation. cannot be used as an identifier.

1 <Script>2      var        New         instanceof       typeof3      Try        Catch       Throw            finally     4      return     void        Continue          for         5      Switch      Case         Break            default    6       Do          while       Debugger         function    7       This        with        if               Else                8      inch         Delete          9 </Script>

* Reserved words

Another set of reserved words that cannot be used as identifiers is likely to be used as a keyword in the future. ECMA-262 all reserved words as defined in version 3rd:

1      abstract    enum        int          2     boolean     export      interface    static  3     byte        extends     long         Super4     Char        final       native       synchronized5     class       float       package      throws 6      const       goto        Private      transient7public      implements  protected    volatile8      double      import      public

JavaScript Learning-identifiers, keywords, reserved words

Related Article

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.