☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agoJavaScriptimagemessage-square26fedilinkarrow-up1168cross-posted to: [email protected]
arrow-up1168imageJavaScript☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agomessage-square26fedilinkcross-posted to: [email protected]
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up19·3 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·3 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.Thanks for the explanation
yup
we have a concept for that in brazilian portuguese. it’s called “gambiarra”.