Lemmy.Chigityk
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 6 days ago

Which of these javascript expressions is false?

message-square
9
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
1

Which of these javascript expressions is false?

cm0002@lemmy.world to Programmer Humor@programming.dev · 6 days ago
message-square
9
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • jenesaisquoi@feddit.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 days ago

    It’s C

    • JCpac@lemmy.today
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 days ago

      No, it’s Javascript, keep up

  • povario@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 days ago

    C, because yes.

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      6 days ago

      I’d say C too because that’s the only one that would be True in a normal programming language and this is javascript so…

      • Remavas@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        5 days ago

        It’s not true in a normal programming language. If it is true in yours, you should stop using it immediately.

        • Valmond@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          5 days ago

          A non type should be a type. It should be of the type none. And it is in good script languages like Python so I don’t know why you think it shouldn’t.

          • Remavas@programming.dev
            link
            fedilink
            arrow-up
            0
            ·
            2 days ago

            They say a picture is worth a thousand words.

            • Valmond@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              2 days ago

              That’s a Numpy type, not a Python typesm, try a=None b=None a==b

              • Remavas@programming.dev
                link
                fedilink
                arrow-up
                1
                ·
                edit-2
                7 hours ago

                That’s not a type. A NaN is a floating point number (of type float). I used numpy because that’s the easiest way to get a NaN.

                This is part of the floating point standard.

                This was never about None, which is a completely different thing.

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.5K users / day
  • 1.55K users / week
  • 1.56K users / month
  • 1.57K users / 6 months
  • 1 local subscriber
  • 23.4K subscribers
  • 53 Posts
  • 329 Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org