• heavy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month 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
      0
      ·
      1 month 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@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        arrow-down
        1
        ·
        1 month ago

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