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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.