• heavy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    6
    ·
    14 hours 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
      4
      arrow-down
      1
      ·
      10 hours 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@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      2
      ·
      11 hours ago

      Theoretically, Javascript is an untyped language…

      Function only handles string arguments correctly. Wat.