@[email protected] to Programmer [email protected] • 1 month agoWhich of these javascript expressions is false?lemmy.mlimagemessage-square83fedilinkarrow-up1499cross-posted to: [email protected]
arrow-up1499imageWhich of these javascript expressions is false?lemmy.ml@[email protected] to Programmer [email protected] • 1 month agomessage-square83fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilinkEnglish24•1 month 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-squareVictorlinkfedilink5•1 month 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.