Code execution is generally top-down, and variables need to be declared before the function segment used and given an initial value.
Code Specification writing:
1. Use the TAB key after the code snippet is selected to make the snippet move to the right for a certain position (typically 4-bit), making it easier to use the TAB key to align the code snippet. Code snippets are aligned for better readability.
2. The equal sign "=", plus "+" should be empty 1 bits on both sides of the mathematical operator. such as x = x + 1;
3. Add comments generally use "//". Comments should be straightforward.
4. Proper use of blank lines in code snippets can improve readability.
5. Variables usually use the combination of letters, underscores, numbers, and the first letter should be used, it is recommended to use the variable name in the form of sunsize . Easy to write and easy to read.
Shortcuts/Abbreviations
" x = x + 1;" = "x + = 1;" Note that there is no space between the plus sign and the equals sign.
x + +; there is no spacing.
JavaScript code specification and other considerations