Node Flashcards
What is Node.js?
Environment to run code outside of the browser
What can Node.js be used for?
building complex projects
What is a REPL?
Read eval, print, interactive application, takes input reads input , evalotes input, prints the results
When was Node.js created?
2009
What back end languages have you heard of?
C++,C#,C,Python,ruby, Go, JavaScript, Java, Rust, PHP
What is a computer process?
A instance of a program running on your computer
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
750ish
Why should a full stack Web developer know that computer processes exist?
Check if the back nd is actually running.
What is the process object in a Node.js program?
Object that provides information about the process
How do you access the process object in a Node.js program?
process keyword
What is the data type of process.argv in Node.js?
Array of strings
What is a JavaScript module?
Free variable that is a reference to the module type object Local to each variable Javascript file
What values are passed into a Node.js module’s local scope?
\_\_dirname \_\_filename Module Exports require
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?
To export data from certain files using the module