reading-notes

This Repo required for Asac labs class 2


Project maintained by ManarAbdelkarim Hosted on GitHub Pages — Theme by mattgraham

Read: 06 - Node, Express, and APIs

What Is Node.js?

What is node .js this definetion from stack over flow sums it up nicely .Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google’s V8 JavaScript engine and libuv library.

but , “event-based”, “non-blocking”, “asynchronous I/O” — that’s quite a lot to digest in one go. So let’s approach this from a different angle and begin by focusing on the other detail that both descriptions mention — the V8 JavaScript engine.

Node Is Built on Google Chrome’s V8 JavaScript Engine

Node.js® is a JavaScript runtime built on Chrome’s V8 JavaScript engine, and it is an event-based, non-blocking, asynchronous I/O runtime that uses Google’s V8 JavaScript engine and libuv library.

The V8 engine is the open-source JavaScript engine that runs in Google Chrome and other Chromium-based web browsers, including Brave, Opera, and Vivaldi. When we say that Node is built on the V8 engine, we don’t mean that Node programs are executed in a browser. Rather, the creator of Node took the V8 engine and enhanced it with various features, such as a file system API, an HTTP library, and a number of operating system–related utility methods.

What Is Node.js Used For?

installing (via npm) and running (via Node) various build tools — designed to automate the process of developing a modern JavaScript application.

The Node.js Execution Model

NodeExecutionModel

where to use Node.js ?

Node js is suited for building applications that require some form of real-time interaction or collaboration, (ex example chat sites) and apps such as CodeShare you can watch a document being edited live by someone else

Advantages Using of Node.js?