Skip to content

ZNTC0602: Cannot mix '??' with '&&' or '||' without parentheses

Cannot mix ’??’ with ’&&’ or ’||’ without parentheses

Category: Parser: Expression/Operator

const x = a ?? b || c;

Reproduce in Playground →

See the error message for cause and resolution.