• xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    3 months ago
    ==
    

    Well there’s your problem, you’re using an operator that shouldn’t exist. Triple equals all the things and if you want to coerce types write it out explicitly.

    • mogoh@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      While you are basically right, the problem is that there is an operator that should not exist. Though that is not the biggest problem of JavaScript.