First, JavaScript syntax
1.JavaScript statement: A command issued by a JavaScript statement to the browser. The purpose of the statement is to tell the browser what to do.
2. Semicolon: Split between statements with semicolons. Semicolons are optional and can not be added. Suggested Plus.
3.JavaScript code: Executes sequentially in the order in which they are written.
4. Identifier: The JavaScript identifier must start with a letter, underscore, or dollar sign. The JS keyword cannot be used (such as document).
5.JS is case sensitive.
6. Adding spaces does not affect execution.
7. Code wrapping: Do not break lines between the letters of the Code
8. Reserved words: Attention when using
<! Doctype html>
<! DOCTYPE html>
Second, JavaScript comments
1. Single-line comment//
2. Multi-line Comment/**/
<! DOCTYPE html>
JavaScript Basics Tutorial (ii)