A.
The var keyword cannot be omitted when js defines a variable, otherwise an error will be reported.
B.
Variable name cannot start with $.
C.
The declaration of a variable is represented by the keyword var, but it can also be omitted.
D.
Js variables are declared by var just like php variables.