NodeJs Flashcards

1
Q

is a runtime environment that allows you to execute JavaScript code on the server side.

A

Node.js

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

Non-blocking I/O operations make it efficient for handling multiple request simultaneously

A

Asynchronous and Event-Driven

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

Uses single-threaded event loop but can handle many connections concurrently through callbacks, promises, or async/await.

A

Single-Threaded but Scalable

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

NPM (Node Package Manager) provides a vast library of packages and modules

A

Rich Ecosystem

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

Runs a various operating systems like Windows, Linux, and macOS

A

Cross-Platform

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

Built on the V8 engine, which compiles JavaScript to machine code.

A

Fast Performance

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

var http = require(‘whathere’);

A

var http = require(‘http’);

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

http.createServer(whathere (req, res)){

A

http.createServer(function(req,res)){

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

res.writeHead(200, {‘whathere’: ‘text/html’});

A

res.writeHead(200){‘Content-Type’: ‘text/html’});

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

res.end(‘hello world!’);
}).listen(whathere);

A

res.end(‘hello world!’);
}).isten(8080);

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

var http = require(‘http’);
http.createServer(function (req, res){

res.writeHead(200, {‘Content-Type’: ‘text/html’});
res.end(‘Hello World’);
}

).listen(8080);

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