cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agoWhich of these javascript expressions is false?imagemessage-square74fedilinkarrow-up1490cross-posted to: [email protected]
arrow-up1490imageWhich of these javascript expressions is false?cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square74fedilinkcross-posted to: [email protected]
minus-squareskisnow@lemmy.calinkfedilinkEnglisharrow-up22·2 days agoThat one wasn’t the one I had issues with, since the concept is essentially the same across all languages. We say it’s false because we can’t conclusively say that it’s true. Same as the reason why null != null in SQL.
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up4·2 days agoIt also makes a lot of conditional expressions less complicated because comparisons of all kind against NaN return false.
That one wasn’t the one I had issues with, since the concept is essentially the same across all languages. We say it’s false because we can’t conclusively say that it’s true. Same as the reason why null != null in SQL.
It also makes a lot of conditional expressions less complicated because comparisons of all kind against NaN return false.