The Promise Architecture — Managing the Future of Your Code1 .What Problem Promises Actually Solve The primary enemy of a clean codebase is Inversion of Control. With callbacks, you pass a function to a third-party library and hope it calls it back correctly.Mar 26 · 3 min readblogs.prakashjha.com
Async/Await — The "Syntactic Sugar" That Saved JSIf you’ve ever looked at a nested chain of .then() and .catch() and felt like you were reading a "Pyramid of Doom," you understand why we needed a change. Async/Await was introduced in ES2017 to make Mar 26 · 3 min readblogs.prakashjha.com
Synchronous vs Asynchronous JavaScriptIn developer terms, we often talk about "Blocking" and "Non-blocking." But to the engine, it’s all about how we manage the Call Stack and the Task Queue. 1. What is Synchronous Code? (The "One-by-One"Mar 26 · 4 min readblogs.prakashjha.com
Map and Set in JavaScriptWhat Map is 1. The Problem with Traditional Objects We’ve used Objects as key-value stores forever. But Objects were designed to be records, not high-frequency lookup tables. Key Restrictions: ObjectMar 26 · 2 min readblogs.prakashjha.com
Understanding the this Keyword in JavaScriptWhat this represents In JavaScript, the this keyword is a reference to the object that is currently executing the code. Its value is not fixed; instead, it is determined at runtime based on how a funcMar 26 · 5 min readblogs.prakashjha.com