DEV Community

Discussion on: Every developers 'oh my god I get it' moment.

Collapse
 
lioobayoyo profile image
lioobayoyo • Edited

When I realized that in JavaScript testing "something == true" or " == false" isn't a correct test for "truthy" and "falsy" values.

More precisely : when I tried to understand why it didn't work, I stumbled upon the excellent series "You don't know JS", and read a little bit of it every minute of my train commute time.

(I started by the chapter Coercion, and quickly had to have a look on the previous ones about Types.

I ended up eating the whole series.

I also ended up not fearing reading (some parts of) ES standard to settle some doubts.

And now I'm starting to love JS instead of hating it, finally understanding how it goes.