loading...

re: Logical assignment operators in JavaScript VIEW POST

FULL DISCUSSION
 

Nice work, thank you for sharing.

I understand better the ??= example with a console.log and changing assignment here: repl

So opts.dog ??= 'bow'; means: if opts.dog is not set, assign bow

Code of Conduct Report abuse