Senior Side Flashcards
What is Node.js?
asynchronous event-driven JS runtime. runtime implements an event loop and allows node to push intensive operations to a sep thread so only fast nonblocking operations on the main thread.
What can Node.js be used for?
APIs, client applications, server applications
What is a REPL?
read eval print loop - interactive programming environment, like browser console.
When was Node.js created?
2009
What back end languages have you heard of?
php
What is a computer process?
instance of a program, launch a program and starts a process.
Why should a full stack web developer know that computer processes exist?
To know how they communicate with one another. HTTP protocol is an example
What is the process object?
The process object 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?
global object
What is the data type of process.argv in Node.js?
Array
What is a directory?
file that holds information of other directories and files
What is a relative file path?
one path to another. How would you get to the path from where you are
What is an absolute file path?
path that starts from root
What module does Node.js include for manipulating the file system?
fs module
What is a client?
Client is a piece of computer hardware or software that accesses a service made available by a server
What is a server?
In computing, a server is a piece of computer hardware or software (computer program) that provides functionality for other programs or devices, called “clients”.
Servers can provide various functionalities, often called “services”, such as sharing data or resources among multiple clients, or performing computation for a client.
Which HTTP method does a browser issue to a web server when you visit a URL?
Get request
What is on the first line of an HTTP request message?
startline - verb, url, http version
What is on the first line of an HTTP response message?
statusline - protocol version (http version), status code, status text
What are HTTP headers?
HTTP headers let the client and the server pass additional information with an HTTP request or response. An HTTP header consists of its case-insensitive name followed by a colon (:), then by its value. Whitespace before the value is ignored. (meta data)
Is a body required for a valid HTTP message?
it is optional