☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agoJavaScriptlemmy.mlexternal-linkmessage-square26fedilinkarrow-up1172arrow-down14cross-posted to: programmer_humor@programming.dev
arrow-up1168arrow-down1external-linkJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agomessage-square26fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareVictoria@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up4·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)
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)