cm0002@lemmy.world to Programmer Humor@programming.dev · 1 day agoWhich of these javascript expressions is false?lemmy.mlimagemessage-square59linkfedilinkarrow-up1355arrow-down13cross-posted to: programmerhumor@lemmy.ml
arrow-up1352arrow-down1imageWhich of these javascript expressions is false?lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 1 day agomessage-square59linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squaremoomoomoo309@programming.devlinkfedilinkEnglisharrow-up24·edit-21 day agoIt’s C, NaN is never equal to itself in floating point, that’s not just a JS thing.
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up21arrow-down1·24 hours agoNo, it’s JS
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