Typescript Basics

Typescript is not entirely a language is a superset of JavaScript. Is have many features that are not supported by the current version of JavaScript supported most browser outside.

  1. Strong-typing – like before use you need to declare the variable type like most programming languages like C#, Java.
  2. Object-Oriented features like classes, generic, public-private protected arrow function like that
  3. We can catch error at compile time not run time.
  4. Get access to best tools like intellicense  for the code editor
  5. Any valid JavaScript code is valid typescript code.
  6. When you compiled your program it will transpile it into Javascript code.
  7. When you build application Typescript compiler kicks in and transpile the application typescript code to javascript.

To install typescript on machine you can use below command.

npm install -g typescript

Latest version of typescript is typescript@3.4.2

tsc –version

Sagar Jaybhay, from Maharashtra, India, is currently a Senior Software Developer at Software Company. He has continuously grown in the roles that he has held in the more than seven years he has been with this company. Sagar Jaybhay is an excellent team member and prides himself on his work contributions to his team and company as a whole.

Sagar Jaybhay

Sagar Jaybhay, from Maharashtra, India, is currently a Senior Software Developer at Software Company. He has continuously grown in the roles that he has held in the more than seven years he has been with this company. Sagar Jaybhay is an excellent team member and prides himself on his work contributions to his team and company as a whole.

You may also like...