NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
Basic JavaScript: A Comprehensive Guide
Introduction to Node.js: JavaScript Beyond the Browser
Quiz
Chapter Quiz: Introduction to Node.js: JavaScript Beyond the Browser
Node.js Basics Quiz
Complete this assessment with 100% score to master this chapter.
01
How do you run a Node.js script named 'app.js' in the terminal?
run app.js
node app.js
npm app.js
js app.js
02
Which object in Node.js provides information about the current running process?
system
window
process
env
03
Which of the following is available in a browser but NOT in plain Node.js?
console.log()
setTimeout()
document.querySelector()
process.env
04
What does REPL stand for in the context of Node.js?
Run, Execute, Print, Loop
Read, Eval, Print, Loop
Read, Execute, Parse, Log
Run, Edit, Parse, Load
05
Why should you use environment variables (process.env) instead of hard-coding secrets in your code?
They make the code run faster
They keep sensitive information out of source code and allow different settings per environment
They are required by Node.js to work
They automatically encrypt the values
Submit Answers
Back to Lesson
Next Chapter