1031
JavaScript (lemmy.ml)
(page 2) 50 comments
sorted by: hot top controversial new old
[-] wreleven@lemmy.ca 13 points 5 days ago

Feels like it could be one of those facebook posts to test "smart" people. Only the top 1% of people can answer this simple math question: "11" + 2 * 2 - 3

[-] cupcakezealot@lemmy.blahaj.zone 2 points 3 days ago* (last edited 3 days ago)

javascript is to web developers what powerpoint is to sales people

[-] kamen@lemmy.world 4 points 4 days ago

If you're consciously and intentionally using JavaScript like that, I don't want to be friends with you.

[-] bitjunkie@lemmy.world 2 points 4 days ago* (last edited 4 days ago)

It's because + is two different operators and overloads based on the type to the left, while - is only a numeric operator and coerces left and right operands to numeric. But frankly if you're still using + for math or string concatenation in 2025, you're doing it wrong.

load more comments (5 replies)
[-] sirico@feddit.uk 5 points 5 days ago

Oh we've hit an issue that's solved by another language or we could make another framework

load more comments
view more: ‹ prev next ›
this post was submitted on 04 Jun 2025
1031 points (98.6% liked)

Programmer Humor

23995 readers
1433 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS