Node.js Flashcards

1
Q

used to develop

A

I/O intensive web applications like video streaming sites
single-page applications
data intensive real-time applications
json apis based applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is Node.js

A

server-side platform built on Google Chrome’s JavaScript Engine (V8 engine)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

event driven

non blocking

A

lightweight
efficient
perfect for data intensive real-time applications that run across distributed devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

asynchronous and event driven

A

non blocking

node.js based server never wiats for an api to return data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

single threaded

A

but highly scalable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

it is not advisable to use node.js for ………….

A

cpu intensive applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

to load required modules use

A

require

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

repl

A

read
eval
print
loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

read

A

reads user’s input
parses the input into javascript data structure
and stores in memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

eval

A

takes and evaluates the data structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

print

A

prints the result

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

loop

A

loops the above command until the user presses ctrl-c twice

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

start REPL

A

run node on terminal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly