• matlag@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 days ago

    That’s also my understanding: “Javascript is great because you can use other languages and then transpile them to JS.”

    • FooBarrington@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 days ago

      JS itself is great, I prefer it to most other languages due to the flexibility that it allows. Adding types through TS to safeguard against footguns doesn’t mean you’re not still using JS. You can also add the types using comments instead if you prefer it, which means you’re actually writing raw JS.