VS CODE OUTPUTšŸ˜

Hello,
Iā€™m still a newbie to programming but dedicated to understanding it and I have recently started javascript with DSA projects but when I was trying to run a function in my code editor i.e VS Code I noticed I was not getting my output in the terminal like it is here in the fcc editor where you can see the output in the console once you type console.log( ).
Does anyone know why this is happening. Plus Iā€™ve already installed the code runner extension. So when I run my code am getting this message in the output
" ā€˜nodeā€™ is not recognized as an internal or external command,
operable program or batch file. "

Did you install Node.js?


VS Code is basically just a text editor, it will not run the code for you. You can use Node to run it, or a browser. I would suggest using the Quokka extension (you still need Node installed).

Nope. I had not installed node.js.
lemme try and then Iā€™ll give you the feedback

and are there some specific properties that should be present in my launch. json file ?
Because there is also that alternative of updating my runtimeExecutable code in launch. json

I wouldnā€™t use the VS Code debugger to run code unless you plan to actually use the in-editor debugging.

(docs are down at the time of posting)

Just use the extension I linked to.

Or run the file directly using Node (the terminal should be opened inside the folder with the JS file)

node --watch main.js

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.