DEV Community

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

brogrammerben profile image

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.

cooldashing24 profile image
Vishnu Damwala Author • Edited

Thanks for your feedback. What should be its alternative?