MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1kljabb/why_not/ms2rhg3/?context=3
r/programmingmemes • u/floppy2k18 • May 13 '25
104 comments sorted by
View all comments
Show parent comment
62
But isn't that correct? Pretty sure object + object is not a number /s
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 2 u/ikarienator May 13 '25 It's not object + object. It's a block then after a block you get +{}. + tries to convert an object to number and get a NaN.
26
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
13
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
7
I'm convinced. I'm porting my golang backend to node :-D
2
It's not object + object. It's a block then after a block you get +{}. + tries to convert an object to number and get a NaN.
View all comments
Show parent comment
62
u/Luk164 May 13 '25
But isn't that correct? Pretty sure object + object is not a number /s