Comment on The birth of JS

<- View Parent
rikudou@lemmings.world ⁨1⁩ ⁨year⁩ ago

Has anyone actually read through that? Reading the first few examples and it’s just not understanding how languages work half of the time:

!!"false" == !!"true"; // -> true
!!"false" === !!"true"; // -> true

Wow, no shit, non-empty string coerces to true, who would’ve guessed! Did you know that !!“bullshit” === !!“true” as well? Mind=blown.

NaN === NaN; // -> false

Again, no shit, that’s in the NaN specification and the page even mentions it, so why even include it?

source
Sort:hotnewtop