☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 24 days agoJavaScriptlemmy.mlexternal-linkmessage-square26fedilinkarrow-up1174arrow-down14
arrow-up1170arrow-down1external-linkJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 24 days agomessage-square26fedilink
minus-squaresomedev@aussie.zonelinkfedilinkarrow-up8arrow-down1·24 days agoI’m guessing the + + in the middle returns NaN
minus-squareVictoria@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up4·23 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)