☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 9 days agoJavaScriptlemmy.mlimagemessage-square26fedilinkarrow-up1169arrow-down10
arrow-up1169arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 9 days agomessage-square26fedilink
minus-square@somedev@aussie.zonelinkfedilink8•8 days agoI’m guessing the + + in the middle returns NaN
minus-squareVictorialinkfedilinkEnglish4•8 days 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)