Node.js · Junior · Question 6 of 75
How do you run a file app.js with Node.js?
- 1
npm app.js - ✓Correct answer:
node app.js - 3
run app.js
Explanation
The node command executes a file. Running node with no arguments starts the interactive REPL.