Node.js Flashcards
What are the 3 components of a fullstack Web architecture?
- A front-end web server serving static content, and potentially some cached dynamic content. In web-based application, front end is the content rendered by the browser. The content may be static or generated dynamically.
- A middle dynamic content processing and generation level application server (e.g., Symfony, Spring, ASP.NET, Django, Rails, Node.js).
- A back-end database or data store, comprising both data sets and the database management system software that manages and provides access to the data.
What is Node.js?
An asynchronous event-driven JavaScript runtime for backend servers that things talk to.
What can Node.js be used for?
Run applications on the backend. Servers.
What is a REPL?
Read–eval–print loop. It is a simple interactive computer programming environment that takes single user inputs, executes them, and returns the result to the user; a program written in a REPL environment is executed piecewise.
When was Node.js created?
May 27, 2009
What backend languages have you heard of?
PHP, Ruby, C++, Java, C#
What is a computer process?
In computing, 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)?
105
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. This will be extremely important when learning about applications made of multiple components, such as clients, servers, and databases.
What is the process object in a Node.js program?
The process object is a global that provides information about, and control over, the current Node.js process. As a global, it is always available to Node.js applications without using require(). It can also be explicitly accessed using require(). The process object is also an instance of EventEmitter.
How do you access the process object in a Node.js program?
Just call or use the variable since it is global and always available.
What is the data type of process.argv in Node.js?
Object data type of an array. The elements in the array are always turned to strings.
How do you access the command line arguments in a Node.js program?
Destructure process.argv and take everything starting at index 2.
What is a JavaScript module?
A file that has JavaScript in it.
What are the advantages of modular programming?
Break down code into smaller chunks and be more organized.