☆ Yσɠƚԋσʂ ☆ to Programmer [email protected]English • 15 days agoJavaScriptlemmy.mlimagemessage-square26fedilinkarrow-up1105cross-posted to: [email protected]
arrow-up1105imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆ to Programmer [email protected]English • 15 days agomessage-square26fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink7•14 days agoI’m guessing the + + in the middle returns NaN
minus-squareVictorialinkfedilinkEnglish4•14 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)