Node Flashcards
What is Node.js?
A program that allows Js to be run outside of a browser.
What can Node.js be used for?
Build backend
What is a REPL?
read-eval-print loop. Programming environment.
When was Node.js created?
May 27, 2009
What back end languages have you heard of?
Python, Ruby, PHP
What is a computer process?
A computer program being executed by one or many threads.
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
500
Why should a full stack Web developer know that computer processes exist?
To know if their programs instructions can be executed.
What is the process object in a Node.js program?
A global object that provides info and control over the current Node.js process.
How do you access the process object in a Node.js program?
process
What is the data type of process.argv in Node.js?
array of strings.
What is a JavaScript module?
A single Js file
What values are passed into a Node.js module’s local scope?
exports, require, module, __filename, and __dirname.
Give two examples of truly global variables in a Node.js program.
Process, console
What is the purpose of module.exports in a Node.js module?
adds it to the root of the module to be used in other module.