171
JavaScript (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] propter_hog@hexbear.net 21 points 1 week ago

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

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

Thanks for the explanation

load more comments (2 replies)
this post was submitted on 04 Jun 2025
171 points (98.3% liked)

Programmer Humor

36413 readers
242 users here now

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

Rules:

founded 5 years ago
MODERATORS