Node.js Flashcards
What is Node.js?
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?
stands for read-eval-print loop. takes single user inputs, executes them, and returns the result to the user.
When was Node.js created?
May 27th, 2009
What is a computer process?
an instance of a computer program that is being executed by one or many threads.
Why should a full stack web developer know that computer processes exist?
So you don’t blow up someone’s computer.
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?
just type process.
What is a JavaScript module?
a single .js file.
What values are passed into a Node.js module’s local scope?
Give two examples of truly global variables in a Node.js program.
require() and console
What is the purpose of module.exports in a Node.js module?
it’s a way to export stuff into different files.
How do you import functionality into a Node.js module from another Node.js module?
allows you to bring a function or other thing from another .js file.
What is the JavaScript Event Loop?
the event loop is the way that the system manages execution.
What is different between “blocking” and “non-blocking” with respect to how code is executed?
Blocking refers to operations that block further execution until that operation finishes while non-blocking refers to code that doesn’t block execution.