☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agoJavaScriptlemmy.mlimagemessage-square26linkfedilinkarrow-up1173arrow-down12cross-posted to: programmer_humor@programming.dev
arrow-up1171arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agomessage-square26linkfedilinkcross-posted to: programmer_humor@programming.dev
minus-squareVictoria@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up4·2 months 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)
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)