midwest.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
relevants@feddit.de to Programmer Humor@lemmy.mlEnglish · 2 years ago

JavaScript Pro Tip!

feddit.de

message-square
10
link
fedilink
3

JavaScript Pro Tip!

feddit.de

relevants@feddit.de to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
10
link
fedilink
alert-triangle
You must log in or # to comment.
  • LovelyCupcake@feddit.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    2 years ago

    It works the other way around as well

    • lemme@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      Take my angry upvote!

  • catacomb@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    I’m going to be honest, this probably makes sense more than any other JavaScript operator quirk I’ve seen.

  • HoornseBakfiets@feddit.nl
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    2 years ago

    Omg it even works for “NaN”

    • zekiz@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      2 years ago

      NaN is actually a number in JavaScript

      • darcy@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        tbf its the floating point standards fault

  • azalty@jlai.lu
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Ahhh… javascript…

  • Rega@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    I had to check if that’s actually true. And yep, this is real.

  • drowned Phoenician@feddit.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    I never learned JavaScript and I can very happily say, I won’t need it for my career. Hopefully.

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.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 243 users / day
  • 1.05K users / week
  • 3K users / month
  • 9.63K users / 6 months
  • 162 local subscribers
  • 37K subscribers
  • 1.91K Posts
  • 38.6K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org