Node.js Flashcards
What is a code block? What are some examples of a code block?
section of code enclosed within { }, ex: function, conditional, loop
What is a CLI?
command-line interface, text-based
What is a GUI?
graphical-user interface, graphical icon-based
man
user manual for commands
cat
combine content of files
ls
shows content of directory
pwd
shows current directory
echo
prints out text on terminal, like console.log( )
touch
changes file timestamps, can be used to create a new file
mkdir
creates a new directory
mv
renames or moves a file
rm
deletes a file
cp
copies a file
What are the three virtues of a great programmer?
laziness, impatience, hubris
What is Node.js?
a program that allows JS to be run outside of a web browser
What can Node.js be used for?
it can be used for back-ends for Web applications, command-line programs anything with automation
What is a REPL?
read-eval-print loop
When was Node.js created?
May 27, 2009
What is a computer process?
a process is 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)?
480 processes
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?
a global that provides info about, and control over, the current Node.js process
How do you access the process object in a Node.js program?
with or without require( )
What is the data type of process.argv in Node.js?
an array of strings of the command-line arguments