Node.js, cmd, React, SQL (senior) Flashcards
What is a CLI?
A command-line interface (CLI) processes commands to a computer program in the form of lines of text. The program which handles the interface is called a command-line interpreter or command-line processor.
What is a GUI?
graphical user interface (GUI) is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based user interfaces, typed command labels or text navigation.
man
man is an interface to the on-line reference manuals.
cat
concatenate files and print on the standard output
ls
list local directory
pwd
prints name os current working directory
echo
displays a line of text
touch
changes file timstanp
mkdir
make directory
mv
move or rename
rm
remove
cp
copy
What is Node.js?
a backend language that allows javascript to run outside of browser
What can Node.js be used for?
backend for web applications, command line or automation
What is a REPL?
A read–eval–print loop (REPL), also termed an interactive toplevel or language shell, 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?
may 27 2009
What back end languages have you heard of?
java, c, .net, pascal, python, php
What is a computer process?
a task being run by the computer
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
468
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 and knowing about the processing power of each component helps with making a more efficient application
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.
What is the process object in a Node.js program?
is a global that provides information about, and control over, the current Node.js process.
How do you access the process object in a Node.js program?
by calling process variable
What is the data type of process.argv in Node.js?
array
What is a JavaScript module?
a single .js file that holds everything necessary to execute only one aspect of the program
What values are passed into a Node.js module’s local scope?
exports, require, module, __filename, __dirname
Give two examples of truly global variables in a Node.js program.
global, console, window, process
What is the purpose of module.exports in a Node.js module?
exporting a function from one module so it can be accessed from another
How do you import functionality into a Node.js module from another Node.js module?
by calling require() function and passing the module as the argument
What is the JavaScript Event Loop?
how js queue events and execute them in order by moving tasks from queue to stack
What is different between “blocking” and “non-blocking” with respect to how code is executed?
blocking is when additional process has to wait for to be executed and none blocking allows other events to be executed while processing
What is a directory?
a file system cataloging structure containing refrence to other files and directories
What is a relative file path?
same directory
What is an absolute file path?
refrence to a directory from root
What module does Node.js include for manipulating the file system?
fs
What method is available in the Node.js fs module for writing data to a file?
writefile()
Are file operations using the fs module synchronous or asynchronous?
both
What is JSON?
javascript object notation, it’s data interchange format that can be used to store or extract data from an object
What are serialization and deserialization?
serialized is the string format of the data object
Why are serialization and deserialization useful?
serialized can be transfer over network and deserialized enables interaction with the data inside the object
How do you serialize a data structure into a JSON string using JavaScript?
stringify()
How do you deserialize a JSON string into a data structure using JavaScript?
parse()
What is a client?
service requester
What is a server?
service and resource provider
Which HTTP method does a browser issue to a web server when you visit a URL?
GET
What is on the first line of an HTTP request message?
request method
What is on the first line of an HTTP response message?
status code
What are HTTP headers?
An optional set of HTTP headers specifying the request, or describing the body included in the message.