Node Quiz Questions Flashcards
What is Node.js?
Node.js is a program that allows JavaScript to be run outside of a web browser
What can Node.js be used for?
It is commonly used to build back ends for Web applications, command-line programs, or any kind of automation that developers wish to perform
What is a REPL?
read-eval-print loop - a simple interactive computer programming environment that takes single user inputs, executes them, and returns the result to the user (console.log is a REPL)
When was Node.js created?
In 2009 by Ryan Dahl
What back end languages have you heard of?
Java, ruby, php, python, c shark, c++, coval, objective c, go
What is a computer process?
the instance of a computer program that is being executed by one or many threads
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
around 400
Why should a full stack Web developer know that computer processes exist?
To be aware if the request you sent actually sent. Your process might not be on, which is why the request isn’t working
What is the process object in a Node.js program?
a global that provides information about, and control over, the current Node.js process
How do you access the process object in a Node.js program?
It’s a global variable contained in the variable named process. So use the process variable to access it
What is the data type of process.argv in Node.js?
an array
What is a JavaScript module?
a single js file
What values are passed into a Node.js module’s local scope?
dirname filename exports module require
Give two examples of truly global variables in a Node.js program.
process and Class: Buffer
What is the purpose of module.exports in a Node js module?
to export code to be used on other js pages