What is a CLI?
Command-line interface- using text input to execute commands
What is a GUI?
Graphical user interface- interface that allows user to interact with devices with graphical icons (or audio indicators)
Give at least one use case for each of the commands listed in this exercise.
What are the three virtues of a great programmer?
What is Node.js?
Program that allows javascript to be run outside of a web browser
What can Node.js be used for?
Building back-end applications and command line programs. Or any type of automation developers wish to perform. Can build WEB SERVERS.
What is a REPL?
Read, evaluate, print, loop
Programming environment that takes user inputs, executes them, and returns the results to the user, then loops
When was Node,js created?
2009
What back end languages have you heard of?
Python, C++, C, Java
What is a computer process?
An instance of a computer program
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
250
Why should a full stack Web developer know that computer processes exist?
Full stack development is based on having multiple processes work together at the same time to deliver a working application
Another reason is so you can kill a process if needed
What is theprocessobject in a Node.js program?
A global object that provides information about, and control over, the current Node.js process.
How do you access theprocessobject in a Node.js program?
just typing process
What is the data type ofprocess.argvin Node.js?
An array of command line arguments (string) from when the Node.js process was launched.
What is a JavaScript module?
A single .js file
What values are passed into a Node.js module’s local scope?
__dirname -directory name of current module
__filename - file name of current module
Exports - reference to module.exports
Module - reference to the current module - string for module name or path
Require-returns any exported module content
Give two examples oftrulyglobal variables in a Node.js program.
Process
Console
What is the purpose ofmodule.exportsin a Node.js module?
To allow you to export a files functionality only when its needed
How do you import functionality into a Node.js module from another Node.js module?
require()
What is a directory?
A folder or files that contains other files
What is a relative file path?
Location of a file in relation to the current working directory
./ -> current directory
../ -> parent directory
What is an absolute file path?
Location of a file from the root directory
What module does Node.js include for manipulating the file system?
‘fs’