DEV Community

Discussion on: True Is Not Always True In JavaScript

Collapse
 
cariehl profile image
Cooper Riehl

My background is in more strictly-typed languages like C++ and C#, and the whole "truthy vs falsy" concept still throws me off whenever I write JavaScript. The !! syntax in particular makes me gag every time I see it! I know what it's doing, it just looks so odd compared to the other languages I've worked with. Maybe I just need more JavaScript experience...

Anyway, thanks for sharing!

Collapse
 
bibekkakati profile image
Bibek

Yeah. You will get used to it.