cm0002@lemmy.world to Programmer Humor@programming.dev · 6 days agoWhich of these javascript expressions is false?lemmy.mlexternal-linkmessage-square81fedilinkarrow-up1505arrow-down111
arrow-up1494arrow-down1external-linkWhich of these javascript expressions is false?lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 6 days agomessage-square81fedilink
minus-squaremoomoomoo309@programming.devlinkfedilinkEnglisharrow-up30·edit-26 days 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-up22arrow-down1·6 days 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