What is Typescript?

Typescript  is a super set of JavaScript.

It is developed by Microsoft.

It is a static type language means we can detect error while writing the code itself.

which  makes it easy to maintain and debug it. So it is suitable for very large application 

While JavaScript is not a static type language which makes it difficult to debug and catch the error.

Typescript is Object oriented and it supports class, interface etc.

Typescript  file has a  .ts extension. We can use node server/ node.js to run type script.

When we execute Typescript on node server it get converted to .js file.

What Node.js?

Node.js is an open source, cross-platform runtime environment for server-side JavaScript. Node.js is required to run JavaScript without a browser support.  Node.js is available here − https://nodejs.org/en/download/


Steps to set up Typescript development environment:

Installation Steps:

Step 1 − Download and install the Node.js.

Step 2 − To verify if the installation , enter the command node –v in command prompt



Step 3 − Type the following command  to install TypeScript.

npm install -g typescript

Step 4 − To verify the installation enter below command 

tsc -v







Comments

Popular posts from this blog

Hybris / SAP Commerce Cloud Groovy Scripting Job to Generate CSV/Excel Reports and copy to Commerce cloud Blob Storage

Emma's dream - a kids story - By Kavya

Hybris/ SAP commerce Cloud: Retry failed/not sent emails due to SMTP connection issue.