Type coercion confusion in JavaScript
π΅πππ πππππ π²πππ’ πΏπππππ β’ | Started in 1984 with LOAD '''' ENTER & PLAY.
Today I learned this is not true in JavaScript, and I'm shocked π€―
β James Q Quick (@jamesqquick) June 13, 2022
"true" == true //returns false
My answer
Yes, when you allow coercion with == you get NaN is not equal to 1.
β Ivan BunΔiΔ π¦π₯β¨ (@ivanbuncic) June 14, 2022
That is what the spec says.https://t.co/c2rEghMaTq
When you are in doubt, read the Spec please.