☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 days agoJavaScriptlemmy.mlimagemessage-square23linkfedilinkarrow-up121arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up121arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 days agomessage-square23linkfedilinkcross-posted to: programmer_humor@programming.dev
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up3·4 days 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.Thanks for the explanation