Node.js Flashcards
used to develop
I/O intensive web applications like video streaming sites
single-page applications
data intensive real-time applications
json apis based applications
what is Node.js
server-side platform built on Google Chrome’s JavaScript Engine (V8 engine)
event driven
non blocking
lightweight
efficient
perfect for data intensive real-time applications that run across distributed devices
asynchronous and event driven
non blocking
node.js based server never wiats for an api to return data
single threaded
but highly scalable
it is not advisable to use node.js for ………….
cpu intensive applications
to load required modules use
require
repl
read
eval
print
loop
read
reads user’s input
parses the input into javascript data structure
and stores in memory
eval
takes and evaluates the data structure
prints the result
loop
loops the above command until the user presses ctrl-c twice
start REPL
run node on terminal