In this article, I will be explaining lots of concepts related to why NaN === NaN is falsy in JavaScript. I will explain strick equity and types in js.
Software Engineer @Vodafone
Software engineer @Vodafone | Frontend with +3 years of experience. I enjoy pretty much anything that is made with JavaScript and I love looking at old code bases and refactor it. I'm an anime lover and a league of legends player so add me @sekab on EUNE sever :)
Markdown supported · ⌘↵ to post
Gene Nakagaki
I didn't know you can't check NaN with the
===operator! I'm glad I got to know this before running into this problem :DA little different from NaN, but I was a little surprised with this one also.
Boolean("false") // trueUntyped languages are so hard!