Can anyone please tell me why my javascript code cannot be executed? What is Uncaught SyntaxError: Unexpected Identifier?
>Solution :
You have a > before your text cursor. This means that you’re already in Node.
Right now, what’s happening is you’re telling Node to run the following JavaScript:
node index.js
which, of course, is not valid JavaScript.
You need to exit Node so that the standard terminal is displayed, such as cmd or powershell (press Control-C a couple times)
Then you can type in node index.js. If you’re in the same directory as the index.js file, it’ll execute.

