Understanding the JavaScript Engine, Browser power, Call Stack, and Asynchronous OperationsThe Browser and Its JavaScript Engine The browser has a built-in JavaScript engine responsible for executing JavaScript code. The Call Stack always resides inside this engine and handles synchronous code execution. However, the browser is much more p...Mar 20, 2025·4 min read
JavaScript HoistingIn JavaScript, hoisting is a behavior where variable and function declarations are moved to the top of their containing scope during the execution phase. This allows you to access variables and functions even before they are declared in the code. Hoi...Feb 21, 2025·7 min read
How JavaScript Runs CodeEverything in JavaScript happens inside an execution context. An execution context is like a big box that contains all the types of code in JavaScript. The execution context is divided into two parts: Memory Code In the memory part, JavaScript st...Feb 20, 2025·5 min read
Block and shadowing in javascriptBlock Referring to is grouping multiple statements together inside a block (curly braces {}) in JavaScript. This is often done when JavaScript expects a single statement but you want to execute multiple statements in that context Example: if (true) {...Feb 14, 2025·2 min read
React 19 useTransition() hookIn React 18 When a user wants to change their name, the process typically involves typing the new name into an input box and then clicking the submit button (which triggers an API call). After submitting, we receive a response. In this case, we need ...Feb 9, 2025·3 min read
promise in javascriptBefore promises, we handled asynchronous operations using callback functions, but callbacks are not a good way to handle asynchronous operations. Callbacks: Callback functions are passed as arguments to asynchronous functions(fetchData) and are exec...Feb 7, 2025·14 min read
async and await keywordBefore the async/await keywords, we handled promises like this: const p = new Promise((resolve, reject) => resolve("resolved promise")); p.then((res) => { console.log(res); }); console.log("hello"); JavaScript doesn't "suspend" execution when ha...Feb 5, 2025·5 min read