DEV Community

Discussion on: True Is Not Always True In JavaScript

Collapse
 
jonrandy profile image
Jon Randy πŸŽ–οΈ • Edited

"...but it is always better to handle pure boolean values."

Totally disagree, it just demonstrates a lack of understanding of the JavaScript language and makes code more verbose than is necessary

Collapse
 
bibekkakati profile image
Bibek

If you are working on a JavaScript stack on both client and server side then it's fine but with different tech stack, sometimes you may encounter some unexpected bugs.

Collapse
 
jonrandy profile image
Jon Randy πŸŽ–οΈ

Agreed, but this article is specifically about JS

Thread Thread
 
bibekkakati profile image
Bibek

Yeah. I myself don't use that syntax often.