loading...

Discussion on: Short Circuit Conditionals in JavaScript

Collapse
jwhenry3 profile image
Justin Henry

The only thing I would think is worth mentioning is that comparisons have quirks with javascript.

An empty string, zero, null, undefined will all ring false.

Readability is more important to me than short lines, however if done properly, you can achieve both goals.