cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agoWhich of these javascript expressions is false?lemmy.mlexternal-linkmessage-square64fedilinkarrow-up1465cross-posted to: programmerhumor@lemmy.ml
arrow-up1465external-linkWhich of these javascript expressions is false?lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square64fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squaremoomoomoo309@programming.devlinkfedilinkEnglisharrow-up29·edit-22 days agoIt’s C, NaN is never equal to itself in floating point, that’s not just a JS thing.
It’s C, NaN is never equal to itself in floating point, that’s not just a JS thing.
Yep, it’s C
No, it’s JS