gagan-bn.hashnode.dev馃寑 Behind the Scenes of Asynchronous JavaScript: The Event Loop in DepthWe often hear that the event loop is responsible for handling asynchronous code in JavaScript. While that鈥檚 true, today let's dive deeper into how the event loop works internally, especially in the context of Node.js. 馃搶 Overview The event loop manag...May 3, 2025路4 min read
gagan-bn.hashnode.devUnderstanding the @property Variable in CSSWe all know about variables in CSS, which are similar to JavaScript variables in that they store values. However, do you know the downside of CSS variables? It鈥檚 the inheritance nature of CSS variables. While inheritance has its advantages, it also c...Sep 4, 2024路4 min read
gagan-bn.hashnode.devMutation observer in vanilla JSIntroduction to Mutation Observer in JavaScript Mutation Observer is a powerful API in JavaScript that simplifies the process of observing mutations in the DOM tree and notifying developers about the changes. In the past, developers had to rely on va...Apr 4, 2024路3 min read
gagan-bn.hashnode.devAngular's DirectiveUnderstanding Angular Directives In Angular, directives are essential tools for adding extra functionality to elements. They are implemented using the @Directive decorator. For instance, Angular provides built-in directives like ngIf for conditionall...Mar 19, 2024路2 min read
gagan-bn.hashnode.devBuilding our own custom useReducer HookuseReducer is a local state management hook just like useState to store and update the state of a component. useReducer will take a reducer function and initial state as its two parameters. Let's learn how to build our custom useReducer hook. I will ...Apr 6, 2023路2 min read