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?
Node.js 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?
read–eval–print loop (REPL) is a simple interactive computer programming environment that takes single user inputs, executes them, and returns the result to the user
When was Node.js created?
2009 by Ryan Dahl
What back end languages have you heard of?
PHP(scripting), Python(scripting), Ruby(scripting), C#(compiled), C++(compiled), Java (compiled), Swift(compiled/scripting), objective-c (compiled) , perl(scripting), javascript(script), go (complied), erlang(compiled), elixir (compiled)
What is a CLI?
A Command Line Interface (CLI) processes commands to a computer program in the form of lines of text.
What is GUI?
A Graphical User Interface (GUI) is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indications instead on text based user interfaces
Give at least one use case for - man - command
To look up the user manual for any command (name, synopsis, description)
Give at least one use case for - cat - command
- Print files on the standard output.
- Concatenate files - combine the contents of those files.
- Combine files and write the result to a new file using >
Give at least one use case for - ls - command
Display/print list directory contents
Give at least one use case for - pwd - command
Display/print the full file name of the current working directory
Give at least one use case for - echo - command
Display a line of text / Echo/print the line of text to the standard output
Give at least one use case for - touch - command
- make a file
2. update the access and modification times of each file to the current time
Give at least one use case for - mkdir - command
Make directories
Give at least one use case for - mv - command
- Move files
2. Rename files
Give at least one use case for - rm - command
Remove files or directories - is instantaneous and permanent
Give at least one use case for - cp - command
Copy files and directories
What is a computer process?
A process is the instance of a computer program that is being executed by one or many threads. It contains the program code and its activity. Depending on the operating system (OS), a process may be made up of multiple threads of execution that execute instructions concurrently.
While a computer program is a passive collection of instructions, a process is the actual execution of those instructions. Several processes may be associated with the same program.
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
400+