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./ as a back end api/ to make programs that run on the command line/ or any desktop program/ almost any area of programming
What is a REPL?
read–eval–print loop (REPL),
is a simple interactive computer programming environment that takes single user inputs, executes them, and returns the result to the user another existing tool would be an ineractive coding inviroment like the chrome console.
node js can be ran as a REPL in ineractive mode
When was Node.js created?
May 27, 2009
What back end languages have you heard of?
python,Java,c++
What is a computer process?
the instance(copy) of a computer program that is being executed by one or many threads(a program that is bein runned)
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
7
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, 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 object 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 has many events that can be used to
How do you access the process object in a Node.js program?
it can also be explicitly accessed using require():
and it is always available to Node.js applications without using require(). I
What is the data type of process.argv in Node.js?
array with string elements
What is a JavaScript module?
- In JavaScript, a “module” is a single .js file.
2. they each have module scope meaning its data is only available within that module
What values are passed into a Node.js module’s local scope?
exports/required/moduele/___filename/___dirname
What is a JavaScript module?
A module in JavaScript is just a file containing related code.
Give two examples of truly global variables in a Node.js program.
process/ console/ setTimeout