☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 6 days agoJavaScriptimagemessage-square26linkfedilinkarrow-up1173arrow-down14cross-posted to: programmer_humor@programming.dev
arrow-up1169arrow-down1imageJavaScript☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 6 days agomessage-square26linkfedilinkcross-posted to: programmer_humor@programming.dev
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up21·6 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·5 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
Thanks for the explanation
we have a concept for that in brazilian portuguese. it’s called “gambiarra”.