Introduction to Typescript

Typescript is a programming language developed on top of javascript to enable type system while developing large applications. It is a strict syntactical superset of JavaScript and adds optional static typing to the language.

What is TypeScript

TypeScript is an open source free programming language developed at Microsoft to enable type-system on top of javascript.

End of the day, after compiling typeScript, it generates javascript code. So, we can still have to use javaScript concepts like objects, arrays, classes, error handling, etc. And in fact you can write JS code in TS module.

Typescript = JavaScript + Type System


Why Do We Have To Use TypeScript?

There are numerous reasons to use typescript in your project.

  • Adding type system to the javascript makes development faster.
  • Catch the errors at the development time.
  • Helps your editor to suggest code improvements at the time of development.
  • Helps manage the large projects and growing projects.
  • Make javascript feel like Object Oriented Programming language.

What TypeScript Can Do?

TypeScript is used at development time while working with large project.

  • It adds type system to JavaScript code
  • It can compile typescript code and generate plain old JavaScript for browsers to use.
  • It adds OOP paradigms to your program.

What TypeScript Can’t Do?

TypeScript isn’t a complete programming language. It does not have run time. It just provides type-system around JavaScript, literally.

  • TypeScript does not optimize your code at the time of compilation. Many statically typed programming languages like, java, go does optimizations at the time compilation but not TypeScript.
  • It can not be run unless it is converted to JavaScript code.


TypeScript is like a wrapper around javaScript to help improve the development speed. After compilation, typeScript generates JavaScript. All we are doing is generating javaScript code using TypeScript syntax.

typescript programming

Subscribe For More Content