Feb 6 · 3 min read · Callbacks in JavaScript confused me a lot when I first encountered them. I read articles and watched videos, but nothing really clicked. I could repeat the definition, yet I didn’t truly understand what was happening behind the scenes. If this sounds...
Join discussion
Jun 30, 2025 · 4 min read · JavaScript thrives on events and asynchronous tasks. Amid its many features, callbacks quietly shape how we write non-blocking code. Yet, many overlook how crucial they are for flow control and error handling in async operations. Have you ever wonder...
Join discussionJun 28, 2025 · 7 min read · These four concepts are commonly used in React development and modern JavaScript. This article explains each of them step-by-step with 3 real-life examples per topic, using simple English so both beginners and working professionals can learn easily. ...
Join discussionMar 21, 2025 · 8 min read · Functions with callbacks have played a significant role in many reentrancy attacks, a common vulnerability in smart contracts. In this article, we will discuss the topic and explore how callbacks can contribute to reentrancy attacks, how these attack...
Join discussion
Mar 2, 2025 · 2 min read · hey folks let’s understand callbacks in a easy way. we use callbacks to save ourselves from DRY(don’t repeat yourself) problem like we can understand from a example: LIFE BEFORE CALLBACK function square(n){ return n*n; } function cube(n){ r...
Join discussionFeb 17, 2025 · 2 min read · Assume that you have a C function that accepts another function as an argument, mostly known as a callback. This is used to delegate processing data from one function to another, without pre-defining how that other function will work. Ex-post, the de...
Join discussion
Oct 29, 2024 · 3 min read · JavaScript is a flexible language, allowing functions to be assigned to variables, passed as arguments, and even returned from other functions. This capability is made possible because JavaScript treats functions as first-class citizens. But what doe...
SStanley commented
Oct 22, 2024 · 5 min read · JavaScript, by design, is a single-threaded language 🧵. This means it can only execute one task at a time. However, many modern applications require operations like network requests 🌐, file handling 📁, or database queries 🗄️, which can take time ...
Join discussion