blogs.arnabsamanta.inControl Flow in JavaScriptWhat is Control Flow When you write code, it runs line by line, top to bottom. That is the default. But most real programs cannot work that way — they need to make decisions. Should this user see the 19h ago·8 min read
blogs.arnabsamanta.inArrow Functions in JavaScriptArrow functions were introduced in ES6 and have become the standard way to write functions in modern JavaScript. They are not just syntactic sugar — they behave slightly differently from regular funct19h ago·6 min read
blogs.arnabsamanta.inJavaScript Array Methods – Practical Use Cases + Gotchas1. push() and pop() These work at the end of the array and modify the original array. Normal Use Case push() – Adding a new item to a cart Before: let cart = ["Shoes", "T-shirt"]; cart.push("Watch")19h ago·5 min read
blogs.arnabsamanta.inHow a Browser Works: A Beginner-Friendly Guide to Browser InternalsWhat Really Happens When You Press Enter? We all do this dozens of times every day. You open a browser, type a website address, and press Enter. Within seconds, a complete page appears—text, images, buttons, colors, animations—all perfectly arranged....Jan 31·6 min read
blogs.arnabsamanta.inCSS Selectors: How to Talk to Your HTML ElementsWhy CSS Selectors Are Needed Imagine you're in a room with 50 people and you want to tell someone to raise their hand. You have a few options: "Everyone wearing a red shirt, raise your hand." (targets multiple people by a common trait) "The person na...Jan 30·10 min read