TypeScript My First Code

create file name: index.ts as below

save the file and run the below command:

it will compile the typescript file to JavaScript and generate below file as index.js

to see output run JavaScript file with below command :


Hello, I am Shrikant and my age is: 30

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top