Show List

Introduction to TypeScript

TypeScript is a statically typed, object-oriented programming language that builds on JavaScript by adding optional static typing and class-based object-oriented programming to the language. TypeScript was developed and is maintained by Microsoft, and it is an open-source project that is available under the Apache 2.0 license.

TypeScript was designed to be a superset of JavaScript, which means that any valid JavaScript code is also valid TypeScript code. This makes it easy for JavaScript developers to transition to TypeScript, as they can start using it incrementally and adopt new features as needed.

Below are some of the benefits of TypeScript over JavaScript:
  • Helps identify the code error at compile time
  • Helps develop more structured code
  • Makes it easy to maintain the code.
  • Helps reduce the errors so is preferred for building large applications.

TypeScript provides below additional coding features which are not present in JavaScript:
  • TypeScript supports interfaces
  • Supports object oriented programming
  • Helps identify the compilation errors at the time of development (pre-compilation)

TypeScript code needs to be compiled to JavaScript code before it can be run on a browser.

    Leave a Comment


  • captcha text