Run JavaScript in Visual Studio Code

后端 未结 18 1067
北恋
北恋 2020-11-30 17:04

Is there a way to execute JavaScript and display the results using Visual Studio Code?

For example, a script file containing:

consol         


        
18条回答
  •  再見小時候
    2020-11-30 17:47

    Follow these steps in VS code.[performed in windows os]

    1. Create new file

    2. Write javascript codes in it

    3. Save file as filename.js

    4. Go to Debugging menu

    5. Click on Start debugging

    6. or simply press F5

    screenshot of starting debugging

    screenshot of output of js code in terminal

提交回复
热议问题