Lemmy Coupou.fr
  • 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
11
link
fedilink
31

JavaScript Pro Tip!

feddit.de

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

    It works the other way around as well

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

      Take my angry upvote!

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

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

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

    Ahhh… javascript…

  • catacomb@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    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
    2
    ·
    edit-2
    2 years ago

    Omg it even works for “NaN”

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

      NaN is actually a number in JavaScript

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

        tbf its the floating point standards fault

  • Synthuir@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    My favorite data type, ‘number’

  • drowned Phoenician@feddit.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    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.

  • 142 users / day
  • 895 users / week
  • 2.5K users / month
  • 10.2K users / 6 months
  • 1 local subscriber
  • 35.8K subscribers
  • 1.88K Posts
  • 38.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org