• heavy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    7
    ·
    3 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.

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      2 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.

    • zqwzzle
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      3
      ·
      2 days ago

      Theoretically, Javascript is an untyped language…

      Function only handles string arguments correctly. Wat.