☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 15 days agoJavaScriptlemmy.mlimagemessage-square26linkfedilinkarrow-up1175arrow-down13
arrow-up1172arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 15 days agomessage-square26linkfedilink
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up20·15 days ago+ is overloaded for string concatenation, but - isn’t so the interpreter coerces the “11” into a number first.
minus-squarevfreire85@lemmy.mllinkfedilinkarrow-up2·14 days 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