Node.js Flashcards
What is Node.js
Node.js is 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 apps, command-line programs, or any kind of automation that developers wish to perform.
What is REPL?
Read-Eval-Print Loop
When was Node.js created?
2009 by Ryan Dahl
What other back end languages have you heard of?
Ruby, PHP, Java, c#, Python, C, C++, Swift (Not common for back end though feasible), Objective C (not common for back end though feasible), JavaScript, Perl, Go, Erlang, Elixir.
What is CLI?
Command Line Interface
What is GUI?
Graphical User Interface
Give at least one use case for each command listed in this exercise: man cat ls pwd echo touch mkdir mv rm cp
man: Look up manuals
cat: Concatenate files and print on the standard output.
ls: list items in the directory.
pwd: print name of current/working directory.
echo: Display a line of text
touch: Make new files or update timestamps.
mkdir: Makes new directories
mv: Move (rename) files
rm: Remove files or directories.
cp: Copy files or directories.
What are the three virtues of a great programmer?
impatience, laziness, hubris.
What is a computer process?
The instance of a computer program that is being executed by one or many threads. It contains the program code and its activity.
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
300
101 Windows Processes
98 Background Processes
11 Apps
Why should a full stack Web developer know that computer processes exist?
Because we are making multiple processes work together to form one application.
What is the process object in a Node.js program?
It is a global that provides information about, and control over, the current Node.js process. As a global, it is always available to Node.js applications without using require().
It is also an instance of EventEmitter.
How do you access the process object in a Node.js program?
node command then process
What is the data type of process.argv in Node.js?
An array of strings