Dec 9, 2017

Differences Between JavaScript And TypeScript

Javascript
Typescript
It is a scripting language.
It is an object oriented programming language(not pure).
There is no static typing. ex: var num.
Here it is static typing (We can declare a variable in multiple ways). ex: var num : number.
It doesn't have interfaces .
It has interfaces.
It has no optional parameter feature.
It has optional parameter feature.
No generics are supported
Supports generics.
No modules support.
Number, string etc. are the objects.
Supports Modules .
Number, string etc. are the interfaces.

No comments:

Post a Comment