Synchronous vs Asynchronous (Simple Thumb Rule)
Feb 21 · 2 min read · 1. Synchronous Code (Blocking)
Thumb Rule:Synchronous code waits until the current task finishes before moving to the next line.
Example:
const fs = require("fs");
let contents = fs.readFileSync("a