NodeJS Runtime

A CSE sophomore from IIT Mandi
ECMAscript
It is a scripting language spec which defines the core features and implementation of a scripting language.
JS is a implementation of ECMAscript standard.
NodeJS
It is an open-source, cross-platform JavaScript runtime environment.
It is built on Chrome's V8 JS engine (there are other JS engines also like SpiderMonkey).
Bun is NodeJS competitor which is getting famous due to its scalability and efficiency.
HTTP Server
HTTP is a protocol defined on machines to communicate each other.
Most common way in which website frontend communicate with its backend.
HTTP Methods
HTTP defines a set of request methods to indicate the desired action to be performed for a given resource. Some commonly used are :
GET
POST
PUT
DELETE
HTTP Status Code
HTTP response status codes indicate whether a specific HTTP request has been successfully completed e.g.
200 - Everything is OK
404 - Route not found
403 - Authentication error
500 - Internal server error
HTTP Server in JS using Express
Express is a minimal and flexible NodeJS web application framework that provides a robust set of features for web and mobile applications.




