Professional Documents
Culture Documents
▪ ES6 came with the major update in the year 2015 which is also
termed as advanced JavaScript.
▪ TC39 (JavaScript board members) decided to bring update to
JS every year hence we also call the ES version by year.
Example:
Code:
console.log(‘First’);
console.log(‘Second’);
console.log(‘Third’);
Output:
First
Second
Third
Asynchronous:
Sometimes, important instructions get blocked due to some
previous instructions which causes delay in the user
interface.
Third
Second
Server:
Stores all data associated with the websites that are hosted
by it. Processes client requests and provide appropriate
response.
Uses HTTP (Hypertext Transfer Protocol) & other protocols
to respond to client request made over www.
SMTP (Simple Mail Transfer Protocol) used for email transfer
and storage.
FTP (File Transfer Protocol) used for file transfer and storage.
Displays website content through storing, processing, and
delivering webpages to users.
Multi-threaded process:
Executes multiple instructions at a time.
MULTI-THREADED SERVER
thread thread
Queue of Requests Response
thread
Talking to database,
downloading stuff
Active time → Needs attention by thread
Inactive time →Does not need attention by thread
REPL:
REPL is used for experimenting with Node JS codes and
debugs JS codes inside the terminal.
Debugs → To detect and remove defects or errors
Node modules:
1. Built-in node modules
2. Local modules
3. Third-party modules