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 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
Comments
Post a Comment