Q: JS file not running with Node.js in terminal I'm trying to use node.js in my Command Prompt to run a js file but the terminal is saying this and not running the file. 
>hello.js:1
(function (exports, require, module, __filename, __dirname) { 
console.log(hello world)
                                                                      ^^^^^
SyntaxError: missing ) after argument list
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)

New error log: 
hello.js:1
(function (exports, require, module, __filename, __dirname) { 
console.log(hello world)
                                                                      ^^^^^

SyntaxError: missing ) after argument list
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)

solved: cd into the folder that the file is in then open the js file with node

A: Notice in the error log that hello world is not a string, looks like two different variables. Think what was intended was 'hello world'. Node is complaining about an argument list because the code is being interpreted as a list of arguments like console.log(someVariableFoo, someVariableBar) since there is a space between hello and world and the text is not wrapped in quotes.
A string in JavaScript looks like: 
const a = 'Hello World'; // single quote
const b = "Hello World"; // double quote 
const c = `Hello World`; // template literal


hello.js:1
  (function (exports, require, module, __filename, __dirname) { 
  console.log(hello world)

More on strings via MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String

A: (function (exports, require, module, __filename, __dirname) { 
console.log("hello world");
}

make hello world string inside the quotes and make sure to close the curly braces
