Hi everybody. I have an issue with NodeJS. When type node game.js I get the following error:
Uncaught SyntaxError: Unexpected identifier
The issue is not the code. I run the code in Chrome with Live Server and it’s working. The problem is with NodeJS or PowerShell terminal.
I tried uninstalling NodeJS and installing again, but that didn’t solve the problem.
Thank you in advance!