Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

TypeScript is a superset or extension of JavaScript which adds optional typing and compiles to plain JavaScript.

so JavaScript code is also valid TypeScript code (although it depends on the compiler settings).

...

TypeScript also allows for intellisense on class methods and properties together with JSDoc.

Lastly, TypeScript can compile down to an older version of JavaScript (like ES5) so you can use modern JavaScript features and support older browsers like Internet Explorer.

...