Deep Dives into Frontend Development

Explore in-depth articles on JavaScript fundamentals, React patterns, system design, and interview preparation

Arrow Functions Hoisting in JavaScript vs React

Understand why arrow functions aren't hoisted like regular functions, the Temporal Dead Zone (TDZ), and why React doesn't seem to care about hoisting. Learn with practical code examples.

Why JavaScript is Weakly Typed

Understand the difference between strong and weak typing, how type coercion works in JavaScript, and why this matters in interviews. Learn best practices to avoid common pitfalls.

🔄

JavaScript is Single-Threaded: How Hoisting Works

If JavaScript is single-threaded, why doesn't it execute sequentially? Learn about the two-phase execution model, the event loop, and why hoisting doesn't violate single-threading.

⚙️

Is JavaScript Interpreted or Compiled?

JavaScript uses JIT compilation, not pure interpretation. Learn how V8, JavaScriptCore, and SpiderMonkey compile and optimize your code at runtime.

🔀

React's Diffing Algorithm: How O(n) is Possible

Tree comparison is typically O(n²) or O(n³). Discover how React achieves O(n) complexity through three key assumptions about component patterns.

🍪

How Google Keeps You Logged In Across Domains

Understand how logging into Gmail automatically logs you into YouTube, Calendar, and other Google services using domain cookies and cross-domain authentication.