• pineapple@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    1 day ago

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

    • Nailbar@sopuli.xyz
      link
      fedilink
      arrow-up
      9
      ·
      edit-2
      1 day ago

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