• heavy
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    7
    ·
    23 days ago

    Theoretically, Javascript is an untyped language, so there aren’t supposed to really be static types. Giving type errors in this situation would be against design.

      • heavy
        link
        fedilink
        English
        arrow-up
        5
        ·
        23 days ago

        Lol you’ll get no argument from me. It’s not my favorite language.

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      23 days ago

      JavaScript has types and it does have type errors, for instance

      > null.foo
      Uncaught TypeError: null has no properties
      

      Please stop spouting nonsense on issues you know nothing about.

      • heavy
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        5
        ·
        22 days ago

        Dynamic types aren’t static types my man. I think you got some learning to do.

    • zqwzzle@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      2
      ·
      23 days ago

      Theoretically, Javascript is an untyped language…

      Function only handles string arguments correctly. Wat.