☆ Yσɠƚԋσʂ ☆ to Programmer [email protected]English • 10 days agoJavaScriptlemmy.mlimagemessage-square26fedilinkarrow-up1174arrow-down13cross-posted to: [email protected]
arrow-up1171arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆ to Programmer [email protected]English • 10 days agomessage-square26fedilinkcross-posted to: [email protected]
minus-squarepropter_hog [any, any]linkfedilinkEnglish21•10 days ago+ is overloaded for string concatenation, but - isn’t so the interpreter coerces the “11” into a number first.
minus-square@[email protected]linkfedilink2•9 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