Introduction to Typescript

March 18, 2018 Oclemy Typescript Introduction 1 minute, 11 seconds

Typescript is a superset of Javascript developed by a team at Microsoft led by Anders Hejlsberg, the creater or C#.

As a superset typescript contains the entire Javascript with additional features.

All the standard control structures within Javascript are also found and usable within Typescript.

Typescript allows for easy structuring of large pieces of code, something that Javascript hasn't been know to provide.

It provides this by injecting:

  • Classes
  • Interfaces.
  • Modules.

These allow Typescript to provided better structuring than Javascript has always provided.

Majority of programmers from popular languages like Java, C# and Python are also already familiar with these Object Orientation features hence making the transition easier.

TypeScript is not only an easy language to program in but also provides a much better yet easier way of learning Javascript and programming as a whole.

From the onset it encourages you to structure your code and follow a popular programming paradigm in the name of Object Orientation.

With static type checking provided by the IDE, you can also anticipate and safely try out the various intellisense suggestions. In this way you learn easily by programming since it flags errors at compile time.

TypeScript, even though it provides us with nice modern features, doesn't impact your application's runtime performance.

This because it's doesn't replace Javascript but instead compile to pure Javascript. So what the browser interpreter sees is not TypeScript but valid Javascript compatible with the all major browsers.