VA-11 Hall-A Bar
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 14 days ago

JavaScript

lemmy.ml

message-square
26
  • cross-posted to:
  • programmer_humor@programming.dev
176

JavaScript

lemmy.ml

☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 14 days ago
message-square
26
  • cross-posted to:
  • programmer_humor@programming.dev
  • propter_hog [any, any]
    link
    fedilink
    English
    21•14 days ago

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

    • ☆ Yσɠƚԋσʂ ☆OP
      link
      fedilink
      9•14 days ago

      yup

    • @vfreire85@lemmy.ml
      link
      fedilink
      2•14 days ago

      we have a concept for that in brazilian portuguese. it’s called “gambiarra”.

    • @FireIced@lemmy.super.ynh.fr
      link
      fedilink
      1•13 days ago

      Thanks for the explanation

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 429 users / day
  • 1.06K users / week
  • 3.27K users / month
  • 8.76K users / 6 months
  • 36.5K subscribers
  • 1.75K Posts
  • 34.7K Comments
  • Modlog
  • mods:
  • @cat_programmer@lemmy.ml
  • @AgreeableLandscape@lemmy.ml
  • BE: 0.19.1
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org