Terminal not outputting result in Visual Studio Code

Image

I'm fairly new to programming and I'm learning Node.js. When testing my installation of node.js and VS code, I just wanted to run a console.log('Hello');, but the terminal is not outputting anything when I run the file.

In the terminal I just wrote: node hello2.js

hello2.js is the name of the file.


Solution 1:

I am very dumb. I forgot to save the file. Do people recommend to turn on autosave?