DEV Community

Discussion on: Short Circuit Conditionals With Logical AND(&&) Operator - JavaScript

Collapse
brogrammerben profile image
Ben

Except don’t do this. This is the antithesis of easily digestible code. Static code analyzers will also hate this because the complexity increases unnecessarily. Just because you can doesn’t mean you should.

Collapse
cooldashing24 profile image
Vishnu Damwala Author • Edited

Thanks for your feedback. What should be its alternative?