JavaScript Basics-Lexical structure

Source: Internet
Author: User
JavaScript is case sensitive, (HTML is case-insensitive, XHTML is case-sensitive)JavaScript ignores spaces between identities in programs, and in most cases JavaScript ignores line breaks The Unicode escape sequences are prefixed with \u followed by 4 hexadecimal digits. //Line comment;/* cross-line comment */JavaScript identifier must start with a letter, underscore (_), or dollar ($). Subsequent characters can be letters, numbers, underscores, or dollar characters (numbers are not allowed to appear as first characters, so that JavaScript can easily divide identifiers and numbers). There can be no line breaks between return, break, and continue and subsequent expressions (line wrapping then JavaScript automatically adds the end of the first line). the "+ +" and "--" operators should be on the same line as the suffix expression, otherwise the end of the line will fill the semicolon, and "+ +" or "--" will be parsed with the prefix operator for the next line of code. For example:x+ +y This code will parse to "x;++y" instead of "x++;y".

JavaScript Basics-Lexical structure

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.