☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 30 days agoJavaScriptlemmy.mlimagemessage-square16fedilinkarrow-up1159arrow-down15cross-posted to: programmer_humor@programming.dev
arrow-up1154arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 30 days agomessage-square16fedilinkcross-posted to: programmer_humor@programming.dev
minus-squaresomedev@aussie.zonelinkfedilinkarrow-up8arrow-down1·29 days agoI’m guessing the + + in the middle returns NaN
minus-squareVictoria@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up4·29 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)
wut
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)