Finally, enter the JavaScript part of learning
first list some common keywords, and explain the meaning of
- var to declare variables
- function declaration function
- switch to select different implementation
- break switch or termination cycle
- return exit function
- try ... catch statement to implement error handling block
- do ... while executing a statement, the condition is true execute cycle
- if ... else statement is executed according to different conditions