I use vscode with Node, but it does not show my codes in js in output, I use code Runner tbm

Asked

Viewed 2,292 times

-1

I decided to learn Javascript in a course, so I downloaded the Node and vscode, installed everything right, put the code Runner, then when I execute a simple code as console.log('Hello, World'), nothing appears in the output. appears running Ode and etc, down there it should seem to msg, n appears. what to do? help me, pf

  • Make sure you have installed the requested extensions correctly!

1 answer

-1


Hello,

You can press the screen F5 in the archive .js which will execute the code on Debug Console. Thus:

inserir a descrição da imagem aqui

You can run on the Console itself of your operating system as well (If using Windows, try using Windows Powershell). This way:

inserir a descrição da imagem aqui

  • thank you very much! can visualize the code, but like, every time I have to unblock it, right? know tell me why it happens?

  • In this case, you will have to debug every time, in case you want to automate it (automatically update every time the file is modified), you can use the nodemon, just use npm init, npm install -s nodemon and use nodemon arquivo.js

Browser other questions tagged

You are not signed in. Login or sign up in order to post.