Is there an “immediate window” in Visual Studio Code to run Javascript?

前端 未结 5 2094
予麋鹿
予麋鹿 2020-12-28 15:02

Yes, I use F12 in the browser all the time to test out Javascript snippets with the console. I\'m tired of that (for the moment anyway).

I\'ve read that in Visual St

5条回答
  •  被撕碎了的回忆
    2020-12-28 15:53

    Run the command node in the terminal below the editor, this will create a node environment where arbitrary JavaScript can be entered. You must first have node (and apparently npm) installed from nodejs.

提交回复
热议问题