☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agoJavaScriptimagemessage-square26fedilinkarrow-up1168cross-posted to: [email protected]
arrow-up1168imageJavaScript☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agomessage-square26fedilinkcross-posted to: [email protected]
minus-squaresomedev@aussie.zonelinkfedilinkarrow-up6·3 days agoI’m guessing the + + in the middle returns NaN
minus-squareVictoria@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up3·2 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)