if (..) { ... } else if (..) { ... } else { ... }
switch (..) { case A: ... break; case B: ... break; case C: ... break; default: ... break; }
while (..) { ... } do ... while (..); for (i=0; i<10; i++) { ... } for (v in x) { ... } //循环中可包含: continue; break; break LabelName;
with (..) { ... }
throw new Error('异常'); try { ... } catch { ... } finally { ... }
运算符优先级:
15 | . [] () new |
14 | ++ -- - + ~ ! delete typeof void |
13 | * / % |
12 | + - |
11 | << >> >>> |
10 | < <= < >= instanceof in |
9 | == != === !== |
8 | & |
7 | ^ |
6 | | |
5 | && |
4 | || |
3 | ?: |
2 | = *= /= %= += -= < |
1 | , |