MKManeeshwar Karneinkarne.hashnode.dev·Dec 9, 2024 · 1 min readConfused with relative paths?Here’s a list of how directories and file paths work in most programming environments: Relative Paths ./name.txt: Refers to the file name.txt in the current directory. ../name.txt: Refers to the file name.txt in the parent directory of the curren...00
MKManeeshwar Karneinkarne.hashnode.dev·Dec 5, 2024 · 3 min readObject.assign() in JavaScriptIn the world of JavaScript, Object.assign() is the go-to method when you need to copy properties from one object to another. It’s efficient, straightforward, and just a little sneaky — but don’t worry, we’ll break it all down without overcomplicating...00
MKManeeshwar Karneinkarne.hashnode.dev·Dec 1, 2024 · 4 min readthis in JavaScript: A Comedy of ContextsAh, JavaScript. The land of quirky rules, unexpected behaviors, and, of course, the enigmatic this. Let’s dive into the various personalities of this and see why it’s both your best friend and the source of your debugging nightmares. What Exactly is...00
MKManeeshwar Karneinkarne.hashnode.dev·Nov 29, 2024 · 3 min readWhat is npx???😭😭😭Ah, npx—the Swiss Army knife of the Node.js world. It’s like that one friend who always seems to have exactly what you need at the exact moment you need it. Included with npm starting from version 5.2.0, npx lets you run Node.js tools like Jest, Moch...00
MKManeeshwar Karneinkarne.hashnode.dev·Jun 29, 2024 · 6 min readNPM in a nutshellFirst, install node js from nodejs.org , just like you install a game. Now, let's break down npm (Node Package Manager) and package.json in simpler terms: npm and package.json Basics: npm is a tool that helps you manage and install packages (librarie...00