REPL and Scripts
node file.js runs a script. The REPL is great for quick experiments. In this Learn path, Write tasks run like small scripts that print to stdout.
- process.argv holds CLI args.
- console.log is still your friend.
- Exit with process.exit(code) only when needed.
console.log("node-ready");
After you read this chapter, use Write (when available) and Quiz on this page to lock it in.