☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 days agoJavaScriptlemmy.mlexternal-linkmessage-square23fedilinkarrow-up11arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up11arrow-down1external-linkJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 days agomessage-square23fedilinkcross-posted to: programmer_humor@programming.dev
minus-squaresomedev@aussie.zonelinkfedilinkarrow-up0·3 days agoI’m guessing the + + in the middle returns NaN
minus-squareVictoria@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up0·3 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)