Node.js · Junior · Question 6 of 75

How do you run a file app.js with Node.js?

Explanation

The node command executes a file. Running node with no arguments starts the interactive REPL.

Further reading

Problem with a question

Node.js · Junior · question 6

Test yourself

Take the Node.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz