The Insider Guide to Cookies, LocalStorage, and SessionStorage in JavaScriptModern web applications often need to store data directly in the browser, from user preferences to authentication tokens. JavaScript provides three main ways to do this on the client side: Cookies LocalStorage SessionStorage While they all serve...Jun 2, 2025 · 4 min readfantom0.hashnode.dev
CSS Anchor Positioning for Advanced Popover SystemsBuilding Modern UI Components Without JavaScript Gymnastics As front-end developers, we've all been there: trying to position tooltips, popovers, and dropdown menus that need to appear relative to a specific element on the page. For years, our option...May 31, 2025 · 8 min readfantom0.hashnode.dev
Async Iterators vs Generators: Mastering Asynchronous StreamsJavaScript gives us powerful tools for managing sequences of data whether those sequences are finite, infinite, synchronous, or asynchronous. Among the most important of these tools are generators and async iterators. At first glance, they may look s...May 27, 2025 · 4 min readfantom0.hashnode.dev
Maps vs Sets in JavaScript: Organizing Data the Right WayWhen it comes to handling data collections in JavaScript, arrays and objects have long been our go-to tools.However, as applications have grown more complex, JavaScript has introduced two specialized data structures: Maps and Sets. Both offer powerfu...May 9, 2025 · 4 min readfantom0.hashnode.dev
Closures vs WeakMaps: Hiding Data in JavaScriptIn our previous article in the series here, I got a comment on a code snippet I used which made use of closures which reminded me that it is an often confusing part of JavaScript, which then inspired this article. JavaScript developers often face the...Apr 9, 2025 · 7 min readfantom0.hashnode.dev