Node Js Notes
Node Js Notes
js Notes
🔹 I. Introduction to Node.js
1. What is Node.js?
Definition & Purpose
Node.js vs Browser JavaScript
Why use Node.js? (Non-blocking I/O, Event-driven)
Use Cases: APIs, Microservices, Real-time apps
2. How Node.js Works
Single-threaded Event Loop
Call Stack, Callback Queue, Event Loop Phases
Non-blocking I/O with Libuv
V8 Engine
🔹 II. Setting Up
3. Environment Setup
Installing Node.js & npm
Version Management (nvm)
Creating first Node.js file
REPL (Read-Eval-Print Loop)
🔹 VII. Streams
9. Working with Streams
Types of Streams: Readable, Writable, Duplex, Transform
Piping streams
Stream vs Buffer
Backpressure
Real-time use cases (video/audio streaming)