NODE 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?
It is commonly used to build back ends for Web applications, command-line programs, or any kind of automation that developers wish to perform. Making web servers
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?
Python, JavaScript, C++, Ruby, PhP
What is a computer process?
Any running program on computer
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)?
135
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
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?
console.log(process)
In terminal, use node nameOfFile
What is the data type of process.argv in Node.js?
Array
What is a JavaScript module?
A javascript file containing code
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.
Process, console, setInterval, setTimeout
What is the purpose of module.exports in a Node.js module?
To be able to separate functions into their own file and make it easier to use in other files.