TypeScript is a language for writing more maintainable JavaScript. TypeScript adds optional types, classes, and modules to JavaScript.
Elevate your TypeScript skills through 110 curated exercises across 1 core concepts. Master problem-solving with a structured learning path designed for modern developers.
TypeScript (TS) is a superset of JavaScript (JS), created at Microsoft
in response to frustration developing large-scale applications in JS. In a large JS project, knowing
what properties your own objects have, what arguments your functions take (and what type they need to be)
can become difficult. Similarly, since there is no ability to intelligently inspect JS code, when you include
a package (like from npm), you have to keep the documentation up so you know what methods are available and
what arguments they take. TS solves these issues. It is currently an open-source project hosted on Github.
It supports tools for any browser as well as Node, for any host, on any OS. TS compiles to readable,
standards-based JavaScript.
TS adds a flexible type system to JS, in addition to interfaces (custom types) and modifying the syntax of some ECMAScript features such as classes. Types are optional and flexible (for example, you can specify an argument is a string OR a number). Types allow tooling available in most code editors that improve the development experience such as code completion and method detection, both in your own code and in packages you use. It supports many upcoming ECMAScript features (such as async/await). TS can be written in Object Oriented or Functional styles. It is compatible with all existing JS packages. TS transpiles to clean, readable JS.
Try it out at the playground, and stay up to date via the Typescript blog and Twitter account.
Evolving
Typescript is a modern and constantly evolving open-source language supported by Microsoft.
Widely used
TypeScript is used by many libraries and frameworks, and integrates with JavaScript code as well.
Typed JavaScript
Typescript flexible typing system lets you describe what to expect, supporting gradual adoption.
Use any programming style
Use prototype-based, object-oriented, functional, or declarative programming styles, and more.
Consistently Good Tooling
TS's JavaScript integration is handled by the language itself, enabling its tools and features.
Large Community
The large number of users makes it easy to find answers, documentation, and libraries.
Evolving
Typescript is a modern and constantly evolving open-source language supported by Microsoft.
Widely used
TypeScript is used by many libraries and frameworks, and integrates with JavaScript code as well.
Typed JavaScript
Typescript flexible typing system lets you describe what to expect, supporting gradual adoption.
Use any programming style
Use prototype-based, object-oriented, functional, or declarative programming styles, and more.
Consistently Good Tooling
TS's JavaScript integration is handled by the language itself, enabling its tools and features.
Large Community
The large number of users makes it easy to find answers, documentation, and libraries.