JavaScript is more than just a scripting language it's the heart of modern web development. While the basics help you get started, it's the advanced concepts that take your skills from beginner to pro. In this blog, we’ll break down powerful topics l...
Concept Overview: Topics: Synchronous and Asynchronous programming Callbacks Promises Async / Await Fetching Data from APIs Synchronous and Asynchronous Programming In a synchronous programming model, things happen one at a time. When you c...
1️⃣ Basics Q1: What are var, let, and const? var → function-scoped, hoisted, can re-declare. let → block-scoped, hoisted (temporal dead zone), no re-declare. const → block-scoped, must be initialized, no reassignment. Q2: Difference between == a...
Introduction Understanding the differences between 'then/catch' and 'async/await' is crucial for any frontend developer, as it allows us to comprehend asynchronous operations in JavaScript. Brief overview of JavaScript asynchronous handling Understan...
Synchronous Javascript (Javascript Engine) Javascript is a synchronous language at its core, that means it runs on a single thread with a single call stack. So, all the code you write in core JS is executed line by line, one after the other on the sa...
Welcome to Day 9! Today we’re diving deep into what makes JavaScript interactive and asynchronous. You’ll learn how events work, what makes JavaScript single-threaded yet powerful, and how to handle async operations using Promises and async/await. 🖱...
Before understanding the promise, we first need to understand some terminology related to it. Callback: A callback is a function that is provided as an argument to another function. It is executed after the main function has finished its task. Asyn...
Working with asynchronous operations in JavaScript often means juggling multiple Promises. In many real-world situations, we don’t just wait for all Promises (Promise.all) — sometimes we care about which Promise finishes first, or we want the first s...
JavaScript is an asynchronous programming language, which means it can handle multiple operations at the same time without blocking the main thread. When working with asynchronous operations like API calls, file reading, or database queries, you have...
Demystifying a Custom Promise in JavaScript Why build your own promise?Before we dive in, let’s remember that native Promises in JavaScript help us handle asynchronous work—things like fetching data from a server or waiting for a timer. But implement...