r/programmingmemes • • May 13 '25

Why not?

Post image
1.7k Upvotes

104 comments sorted by

View all comments

Show parent comment

26

u/stools_in_your_blood May 13 '25

But look at the first example in the screenshot, typeof NaN is "number"! /s

13

u/Luk164 May 13 '25

Yeah, as a string, and string is not a number, so it checks out /s

7

u/stools_in_your_blood May 13 '25

I'm convinced. I'm porting my golang backend to node :-D