一、词法结构
1. 标识符
必须以字母、_、$开头,后续字符还可以是数字。
2. 保留字
as async await break case catch class const continue debugger default delete do else export extends false
finally for from function get if import in instanceof let new null of return set static super switch target this throw true try typeof var void while with yield
enum implements interface package private protected public
arguments eval
3. 可选的分号
并不是所有情况下才会把所有换行符当成分号,只有当一行没法解释的时候才会读入下一行。