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