☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 1 month agoJavaScriptlemmy.mlimagemessage-square26arrow-up1177cross-posted to: programmer_humor@programming.dev
arrow-up1177imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 1 month agomessage-square26cross-posted to: programmer_humor@programming.dev
minus-square@somedev@aussie.zonelinkfedilink8•1 month agoI’m guessing the + + in the middle returns NaN
minus-squareVictorialinkfedilinkEnglish4•1 month agoIndeed, the unary plus operator tries to convert whatever is after it to a number if it isn’t already. Since ‘a’ is not a valid number, it returns NaN (not a number)
I’m guessing the + + in the middle returns NaN
Indeed, the unary plus operator tries to convert whatever is after it to a number if it isn’t already. Since ‘a’ is not a valid number, it returns NaN (not a number)