☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 5 months agoJavaScriptlemmy.mlimagemessage-square26fedilinkarrow-up1174arrow-down15
arrow-up1169arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 5 months agomessage-square26fedilink
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up22·5 months ago+ is overloaded for string concatenation, but - isn’t so the interpreter coerces the “11” into a number first.
minus-squarevfreire85@lemmy.mllinkfedilinkarrow-up2·5 months agowe have a concept for that in brazilian portuguese. it’s called “gambiarra”.
+is overloaded for string concatenation, but-isn’t so the interpreter coerces the “11” into a number first.yup
we have a concept for that in brazilian portuguese. it’s called “gambiarra”.
Thanks for the explanation