Last updated 2 years ago
Was this helpful?
⟩ ⟩ ⟩ ⟩ parentheses ()
invocation expression:f(): f(args)
f(args)
optional invocation ?.():?.()
?.()
for loops: , ,
switch - switch(<expr>){...}.
switch(<expr>){...}
try-catch-finally - try {...} catch(err) {...}.
try {...} catch(err) {...}
table of operators
nullish coalescing (??)
precedence of ?? relative to ||, && not defined.
??
||
&&
explicitly use parentheses if ?? is mixed with ||, &&.
exponentiation (**)
precedence of ** relative to - (unary negation) not defined.
**
-
explicitly use parentheses when mixing - with **.
for(;;)
for(in)
for(of)