☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 5 months agoJavaScriptlemmy.mlimagemessage-square8fedilinkarrow-up13arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up13arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 5 months agomessage-square8fedilinkcross-posted to: programmer_humor@programming.dev
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up1·5 months ago+ is overloaded for string concatenation, but - isn’t so the interpreter coerces the “11” into a number first.
+is overloaded for string concatenation, but-isn’t so the interpreter coerces the “11” into a number first.yup