Here's what I don't understand -- every discussion about static typing is full of people saying static typing is so good and useful. Everyone i talked to, everyone i work with, we all prefer static typing. And yet... Javascript and all that.
Javascript runs in the browser natively. It's primary advantage is that you don't need to install anything other than the browser. The reasoning behind node.js is that a lot of front end engineers no longer need to learn and use a seperate language for the server and maybe even can reuse libraries between the server and browser.
Javascript is the bash of the internet. It's not that great but it does have a "killerapp".
why do you think people are replacing Javascript with Typescript ? Ultimately, type resolution at compile time is better than an unmaintainble javascript.