Node.js Flashcards
What is Node.js?
program that allows JavaScript to be run outside of a web browser.
What can Node.js be used for?
used for traditional web sites and back-end API services, but was designed with real-time, push-based architectures in mind
What is a REPL?
Read-eval-print loop
Interactive computer programming environment that takes a single user input, executes them, and returns the result to the user
When was Node.js created?
May 27, 2009
What back end languages have you heard of?
Ruby
Python
PHP
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)?
50+
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 an 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?
just use the process variable (it’s global)
What is the data type of process.argv in Node.js?
Array of strings
What is a JavaScript module?
a javascript file
What values are passed into a Node.js module’s local scope?
exports, require()
Give two examples of truly global variables in a Node.js program.
process, global
What is a directory?
is a special type of file that holds information about more directories and files