HSHarshit Soniinharshit-javascript.hashnode.dev·12h ago · 4 min readWhy `a = 10` Isn't Hoisting: Implicit Globals in JavaScriptLook at this code: a = 10; console.log("This is a hoisted variable: " + a); // 10 No var, let, or const and it still works. Many developers call this hoisting, but that is not what is happening. It i00
HSHarshit Soniinharshit-javascript.hashnode.dev·Jun 14 · 6 min readUnderstanding Objects in JavaScriptLet's see the difference between Array & Object An object is a self-contained container that stores data in the form of key-value pairs. Objects can be created using the Object() constructor or the 00
HSHarshit Soniinharshit-javascript.hashnode.dev·Jun 10 · 4 min readUnderstanding Variables and Data Types in JavaScriptA variable is a container used to store data. Think of it like a labeled box 📦 where you keep something. let name = "Harshit"; name → variable (label on the box) "Harshit" → value (what’s inside t00
HSHarshit Soniinharshit-javascript.hashnode.dev·Jun 10 · 4 min readControl Flow in JavaScript: If, Else, and Switch ExplainedControl flow simply means: 👉 The order in which your code executes (runs). By default, JavaScript runs code line by line (top → bottom). Here’s a clear step-by-step flow breakdown for each control 00
HSHarshit Soniinharshit-javascript.hashnode.dev·Jun 10 · 3 min readArrow Functions in JavaScript: A Simpler Way to Write FunctionsAn arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate limitations in usage: Arrow functions don't have their own bi00