this post was submitted on 06 Oct 2025
862 points (99.7% liked)

Microblog Memes

9437 readers
1920 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 2 years ago
MODERATORS
 

Original post: social.coop (Mastodon)

you are viewing a single comment's thread
view the rest of the comments
[–] absentbird@lemmy.world 1 points 1 week ago (1 children)

I don't think there's an explanation that doesn't make this copilot's fault. Honestly JavaScript shouldn't allow math between numbers and strings in the first place. "1" + 1 is not a number, and there's already a type for that: NaN

Regardless, the sum should be 5 if the first cell is text, so it's incorrect either way.

[–] UnderpantsWeevil@lemmy.world 1 points 1 week ago

Honestly JavaScript shouldn’t allow math between numbers and strings in the first place.

You can explicitly type values in more recent versions of JavaScript to avoid this, if you really don't want to let concatenation be the default. So, again, this feels like an oversight in integration rather than strict formal logic.