Go JavaScript two: Basic syntax requirements for JavaScript language

Source: Internet
Author: User

Excerpt from: http://blog.csdn.net/erlian1992

To learn good JavaScript, first we need to understand some basic syntax requirements for JavaScript language:

First, case-sensitive

The JavaScript language is case-sensitive, with two strings that are the same case and different strings. The JavaScript language keyword is also case-sensitive and should be lowercase as required by syntax.

Two, writing format

The JavaScript language ignores whitespace between statements, that is, spaces between statements, blank lines, indents, and so on. In order to improve the readability of the program, these formats should be used to make the program clearer and more readable.

Third, comment statement

In order to improve the maintainability and readability of the program, there should be a certain comment statement, it is to the person reading the program, there are single-line comments and multiline comments, single-line comments start with a double slash, multiple lines to/*,*/as the beginning and end of the identity.

Go JavaScript two: Basic syntax requirements for JavaScript language

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.