DEV Community

Discussion on: JS: variable && function()

Collapse
 
winstonpuckett profile image
Winston Puckett

The difference for me is the "abuse" of the language part. It seems like this isn't a language feature, but something that happened by accident.

I'd agree that it's pretty readable once you're used to it. Is it more readable than just using an if statement? Will it be more readable to the new person on your team?

But arguing over readability is hard... I admit this is my preference, not a rule.