Running a TypeScript program in Visual Studio Code | VS Code Tutorial for Beginners

preview_player
Показать описание
Hello Friends,
Here are the steps:
In the following steps, we will learn to set up Visual Studio Code to run TypeScript program.

Step 1: Very first we need TypeScript Compiler.
If you have npm installed, you can install TypeScript globally (-g) on your computer by:
npm install -g typescript
- After installation run the below command check installation is successful or not.
tsc --version

Step 2: Creating the first TypeScript program in Visual Studio Code.
Please follow my instructions in video tutorial.
sample code :
let message: string = 'Hello World';


{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"outDir": "out"
}
}
Step 4: Compiling and running .ts file.
Step 5: Hit the like button and you can subscribe to support us and learn more.

If you found this video tutorial useful and would like to support me, you can do so by buying me a coffee using the below link!

#TypeScriptTutorialVSCode #TypeScript #CoolITHelp
Рекомендации по теме
Комментарии
Автор

great very helpful thank you forever

afridioo
Автор

This video was very helpful there is no video clearly explained

shafaizanvali
Автор

6:01 why u type "tsc.cmd mytypescript.ts", why don't simply type "tsc mytypescript.ts"? Do u know what is the difference between the two ? Thanks.

leeeric