86thumbs
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 6 days ago

JavaScript

lemmy.ml

message-square
26
fedilink
167

JavaScript

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 6 days ago
message-square
26
fedilink
  • propter_hog [any, any]@hexbear.net
    link
    fedilink
    English
    arrow-up
    20
    ·
    6 days ago

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

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      6 days ago

      yup

    • FireIced@lemmy.super.ynh.fr
      link
      fedilink
      arrow-up
      1
      ·
      4 days ago

      Thanks for the explanation

    • vfreire85@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      5 days ago

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

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

remote_follow_modal_title

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.
community_visibility: public
globe

public_blurb

  • 549 users / day
  • 1.87K users / week
  • 3.89K users / month
  • 10.2K users / 6 months
  • number_of_local_subscribers
  • 36.3K subscribers
  • 1.74K Posts
  • 37.4K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org