Node Flashcards
What is Node.js?
program that lets JavaScript to be run outside of a web browser
What can Node.js be used for?
build back end for Web applications, command-line programs, or any kind of automation that developers wish to perform
What is a REPL?
read-eval-print loop
takes input, reads and executes it, then returns the result to the user
When was Node.js created?
2009
What back end languages have you heard of?
Python, C, C++, java, C#, PHP, JavaScript, Go, Rust, Assembly
What is a computer process?
a computer program being executed
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
~300
Why should a full stack Web developer know that computer processes exist?
Full stack Web development is based on making multiple processes work together to form one application, so having at least a cursory awareness of computer processes is necessary
What is the process object in a Node.js program?
is 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?
console.log(process);
What is the data type of process.argv in Node.js?
array
What is a JavaScript module?
a single JavaScript file
What values are passed into a Node.js module’s local scope?
exports, require, module, __filename, __dirname
Give two examples of truly global variables in a Node.js program.
process and console
What is the purpose of module.exports in a Node.js module?
instructions/command that tells node.js which bits of code can be exported so that other files may access them