• pineapple@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    5 days ago

    I’m so confused. I understand the reasoning behind two equal signs but three?

    • Nailbar@sopuli.xyz
      link
      fedilink
      arrow-up
      11
      ·
      edit-2
      5 days ago

      Afaik with three it also requires the types to be equal. Like 0 == false, but 0 !== false, because they’re different types.