173
JavaScript (lemmy.ml)
submitted 2 months ago by yogthos@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] propter_hog@hexbear.net 22 points 2 months ago

+ is overloaded for string concatenation, but - isn't so the interpreter coerces the "11" into a number first.

[-] yogthos@lemmy.ml 9 points 2 months ago
[-] vfreire85@lemmy.ml 2 points 2 months ago

we have a concept for that in brazilian portuguese. it's called "gambiarra".

[-] FireIced@lemmy.super.ynh.fr 1 points 2 months ago

Thanks for the explanation

this post was submitted on 04 Jun 2025
173 points (98.3% liked)

Programmer Humor

37630 readers
408 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS