Build Your Own CLI Word Counter in Node.jsHave you ever wanted to build your own Command Line Interface (CLI) tool? In this Blog, I’ll create a simple CLI app in Node.js that counts the number of words in a file. Along the way, we’ll explore how Node.js handles command-line arguments with pr...Aug 17, 2025·4 min read
Deep Dive into JavaScript Objects: Property Descriptors, Object.create(), and IterationSep 30, 2024·4 min read
Bind() in javascriptIn this post, we’ll dive into how the this keyword behaves when used in event listeners and how to properly bind it in JavaScript, especially with classes. We'll use a simple example to demonstrate the concepts. Setting the Stage Let’s start with a b...Sep 29, 2024·4 min read
Understanding JavaScript Classes: Behind the ScenesIn JavaScript, classes provide a neat and organized way to define objects and their behaviors. However, before ES6 introduced classes, everything was done using functions and prototypes. Let's dive into how classes work and what happens behind the sc...Sep 6, 2024·4 min read
Understanding call and this in JavaScriptIn JavaScript, the this keyword provides a reference to the current execution context. However, when functions are nested, determining the correct this context can be challenging. Let’s explore this concept with a detailed example. Nested Functions a...Jul 28, 2024·3 min read
Prototype in JavaScriptUnderstanding Prototypal Behavior : When you write the following code in the browser console : const newHero = ["hulk", "spiderman"]; Pressing enter gives undefined because we haven't returned anything; we've simply declared an array and stored it i...Jul 23, 2024·8 min read
Object Oriented Programming in JavaScriptFirst of all, a question arises: are there classes in JavaScript? Historically, JavaScript did not have classes. Technically, even now, there are no traditional classes as seen in other programming languages. However, if you Google it, some articles ...Jul 20, 2024·5 min read
Understanding the Fetch API in JavaScriptThe Fetch API provides a modern, efficient, and powerful way to make HTTP requests and process responses in JavaScript. It is a significant improvement over the older XMLHttpRequest method. What is Fetch API? The Fetch API offers a JavaScript interf...Jul 18, 2024·3 min read