Differences Between JavaScript And TypeScript


JavaScript is the most popular programming language. It is lightweight and commonly used to create interactive and dynamic web pages. It is developed by Netscape in 1995 and named as LiveScript which is later renamed to JavaScript. Read more on JavaScript.


TypeScript: TypeScript is a superset of JavaScript which primarily provides optional static typing, classes and interfaces. One of the big benefits is to enable IDEs to provide a richer environment for spotting common errors as you type the code.

Differences between javascript and typescript:

Javascript Typescript
JavaScript is a scripting language. TypeScript supports object oriented programming language concepts.
There is no static typing. ex: var num. TypeScript supports optional static typing
JavaScript doesn’t supports interfaces. TypeScript supports interfaces.
JavaScript has no optional parameter feature. TypeScript has optional parameter feature.
JavaScript doesn’t supports generics. TypeScript Supports generics.
JavaScript doesn’t have modules support.

Number, string etc. are the objects.

TypeScript supports modules .

Number, string etc. are the interfaces.

Please Share