Comment by pjmlp
2 months ago
JavaScript is partially compiled, given the limitations of using JIT compilers in dynamic languages, and Typescript is basically a linter.
All compiled languages require runtimes, the only difference is how big they are, and JavaScript runtimes are not among the smallest ones.
Then what was the point of asking why they used JS over "a compiled language"?
> compiled languages require runtimes
Hmmm, no ?
Python is compiled (fun fact: it has stronger typing than c++). Java is also compiled, so is C#. All of them require a runtime. Your comment is silly.
What you got wrong is that not all compiled languages need a runtime. Only some of them.