Which one is better, javascript or typescript?

The precise requirements and objectives of the project, as well as the preferences and knowledge of the development team, will all play a role in the choice of language. Midway through the 1990s, Netscape Communications Corporation created JavaScript as a tool for making web sites more interactive. Brendan Eich of [...]