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

JavaScript

lemmy.ml

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

JavaScript

lemmy.ml

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

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

    • ☆ Yσɠƚԋσʂ ☆OP
      link
      fedilink
      10•1 month ago

      yup

    • @vfreire85@lemmy.ml
      link
      fedilink
      2•1 month ago

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

    • @FireIced@lemmy.super.ynh.fr
      link
      fedilink
      1•1 month 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.
  • 11 users / day
  • 849 users / week
  • 2.64K users / month
  • 8.4K users / 6 months
  • 37.1K subscribers
  • 1.77K Posts
  • 35K Comments
  • Modlog
  • mods:
  • @cat_programmer@lemmy.ml
  • @AgreeableLandscape@lemmy.ml
  • BE: 0.19.1
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org