What are the difference beetween Typescript and JavaScript?

Technology CommunityCategory: TypeScriptWhat are the difference beetween Typescript and JavaScript?
VietMX Staff asked 3 years ago
  • It is an object oriented programming language (not pure).
  • Here it is static typing (We can declare a variable in multiple ways). ex: var num : number.
  • It has interfaces.
  • It has optional parameter feature.
  • It has Rest Parameter feature.
  • Supports generics.
  • Supports Modules
  • Number, string etc. are the interfaces.