Node.js Flashcards
What is Node.js?
Node.js is powered by V8; the same JavaScript engine in the Google Chrome browswer.
What can Node.js be used for?
It is a program that allows JavaScript to be run outside of a web browser. It 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)
it 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
What back end languages have you heard of?
SQL , PHP, Python, Ruby
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
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
about 100+ processes
Why should a full stack Web developer know that computer processes exist?
So they can know how many processes are being processed when their app/website is being executed.
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()
How do you access the process object in a Node.js program?
it can be expplicityly accessing using require()
const process = require(‘process’)
What is the data type of process.argv in Node.js?
the data type is a string
What is a JavaScript module?
in Node.js module system, each file is treated as a separate module.
What values are passed into a Node.js module’s local scope?
exports, required, module, __filename, __dirname
Give two examples of truly global variables in a Node.js program.
global and process are global variables
What is the purpose of module.exports in a Node.js module?
to export functions that other modules can import into the javascript.