1. syntax structure
1.1. Case Sensitive
Javascript scriptProgramIt is case-sensitive and has the same letters. Different cases indicate different meanings. In JavaScript scripts, variable names, function names, operators, keywords, and object attributes are case sensitive. All keywords, built-in functions, and object attributes are fixed in case.
1.2 blank characters
Blank characters include spaces, tabs, and line breaks.CodeThe script is parsed and executed by the browser. Script programmers often use spaces as blank characters. The Javascript script parser ignores any unnecessary spaces.
1.3. semicolon
In JavaScript, use semicolon (;) as the end of the current statement. After a statement is split, the semicolon that is used as the statement Terminator can be omitted. However, we recommend that each statement end with a semicolon, even if the line breaks.
1.4. Block
When defining a function, use braces {} to encapsulate the function body.