0
Are Javascript and typescript are same?
2 Respostas
+ 6
Nope, Typescript is a kind of Superset of Javascript. Look here for more:
• https://hackernoon.com/typescript-vs-javascript-b568bc4a4e58
+ 2
The JavaScript that browsers understand is version 5 of the language, released back in 2009. Version 6, ES6, came out in 2015. In 2016 ES7 was released. But browsers are still back on version 5. Typescript is essentially ES7 + types.
JavaScript is a weakly typed language meaning you don't have to declare a type on every variable or parameter. Typescript, as the name implies, is a strongly typed language and requires type declarations either explicitly or implicitly.
JavaScript is extended by using script tags to add libraries. Typescript uses modules and a module loader.
Since browsers dont understand anything past ES5, Typescript has to be compiled down to ES5 before it is deployed to the web.