DEV Community

Discussion on: JavaScript v TypeScript

Collapse
 
lexlohr profile image
Alex Lohr

There are a few mistakes. With Babel, you can import TypeScript directly from within JavaScript, though it needs a bit of setup. In JavaScript, all parameters are optional by default, because their types are obviously not enforced. JavaScript is only JiT-compiled, otherwise an interpreted language.