TypeScript has been a popular application in recent years, which has created an illusion: with so many supporters, is TypeScript a new language?

TypeScript is an object-oriented programming language developed and maintained by Microsoft. It is a superset of JavaScript, containing all its elements.

TypeScript fully follows the concept of OOPS, and with the help of TSC (TypeScript compiler), we can convert TypeScript code (. ts files) into JavaScript (. js files)

In 2010, Anders Hejlsberg (creator of TypeScript) began developing TypeScript at Microsoft and released the first version of TypeScript (TypeScript 0.8) to the public in 2012. Although the release of TypeScript has received praise from many people around the world, it has not been widely adopted by the JavaScript community due to the lack of support for major ides.

The first version of TypeScript (TypeScript 0.8) was released in October 2012.

Why do we need to use TypeScript

  • TypeScript simplifies JavaScript code, making it easier to read and debug.
  • TypeScript is open source.
  • TypeScript provides efficient development tools for JavaScript ides and practices such as static checks.
  • TypeScript makes the code easier to read and understand.
  • By using TypeScript, we can greatly improve ordinary JavaScript.
  • TypeScript provides us with all the advantages of ES6 (ECMAScript 6) and higher productivity.
  • TypeScript can help us avoid the painful errors we often encounter when writing JavaScript by performing type checks on the code.
  • A powerful type system, including generics.
  • TypeScript is just JavaScript with some additional features.
  • TypeScript code can be compiled according to ES5 and ES6 standards to support the latest browsers.
  • Align with ECMAScript for compatibility.
  • Start and end with JavaScript.
  • Supports static types.
  • TypeScript will save developers time.
  • TypeScript is a superset of ES3, ES5, and ES6.