JS Coding Questions Logo
JS Coding Questions
#254💼 Interview

What are the advantages of typescript over javascript

Advertisement

728x90

Below are some of the advantages of typescript over javascript,

1. TypeScript is able to find compile time errors at the development time only and it makes sures less runtime errors. Whereas javascript is an interpreted language.

2. TypeScript is strongly-typed or supports static typing which allows for checking type correctness at compile time. This is not available in javascript.

3. TypeScript compiler can compile the .ts files into ES3,ES4 and ES5 unlike ES6 features of javascript which may not be supported in some browsers.

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 83

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
254of476
What are the advantages of typescript over javascript | JSCodingQuestions.com