Original post: social.coop (Mastodon)

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 year 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.

  • source
  • parent