nullish coalescing (??)

🚧 under construction

JSstatementexpressionoperatorlogical ⟩ nullish coalescing operator (??)

expr ?? default    // nullish coalescing

👉 table of operators

?? operator

  • the precedence of ?? relative to ||, && is not defined.

  • explicitly use parentheses if ?? is mixed with ||, &&.

👉 table of operators

Last updated