I'm just starting to learn JavaScript, and am already stuck with this basic exercise. I've written some basic script that writes "Hello World" to the console, and I'm trying to use node.js to execute the file "index.js" in Visual Studio Code's integrated terminal, but instead of executing the script, it returns "ReferenceError: index is not defined". If it helps, the contents of index.js are as follows:
console.log('Hello World');
index.jslocated in your files, and where are you when you try to execute the script? (ie, what doespwdor thenodeequivalent give you, whatever that is?)