☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 22 days agoJavaScriptlemmy.mlimagemessage-square16fedilinkarrow-up1164arrow-down13cross-posted to: [email protected]
arrow-up1161arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 22 days agomessage-square16fedilinkcross-posted to: [email protected]
minus-squareVictoria@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up4·22 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)