cm0002@lemmy.world to Programmer Humor@programming.dev · il y a 7 joursWhich of these javascript expressions is false?lemmy.mlimagemessage-square81fedilinkarrow-up1510arrow-down111cross-posted to: programmerhumor@lemmy.ml
arrow-up1499arrow-down1imageWhich of these javascript expressions is false?lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · il y a 7 joursmessage-square81fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareskisnow@lemmy.calinkfedilinkEnglisharrow-up24·il y a 7 joursThat 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-up5·il y a 7 joursIt 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.