Frontend Interview Articles
Deep dives into JavaScript internals, React caching, machine coding patterns, and senior frontend system design by Satish Shriwas.
101 JavaScript Output-Based Interview Questions (With Options & Explanations)
Test your JavaScript fundamentals with 101 output-based MCQ questions covering hoisting, closures, event loop, promises, prototypes, coercion, and this — each with 4 options and collapsible answers.
Senior Front-End Interviews Aren’t About Coding — They’re About Architectural Trade-Offs
From Static HTML to Micro Frontends: A complete, visual guide to how front-end architecture evolved, when to pick each pattern, and how to talk about your codebase like a...
Caching in React: A Complete Guide to Building Faster Web Applications
Imagine opening an e-commerce website, browsing products, visiting a product details page, and returning to the product listing. Photo by Rubaitul Azad on Unsplash Should the...
Building an EventEmitter in JavaScript
Ever wondered how JavaScript lets you subscribe to events and react when something happens? Let’s build a simple EventEmitter from scratch — a common frontend machine-coding...
Building getElementsByClassName() from Scratch in JavaScript
Ever wondered how to implement a native DOM method yourself? This frontend problem is a great way to practice DOM traversal, recursion, and class matching . Photo by Daniil...
Implementing JSON.stringify() Using Recursion in JavaScript
Ever wondered how JSON.stringify() converts a nested JavaScript object into a string? Let's build a simplified version ourselves! 🚀 Photo by James Harrison on Unsplash The idea...
JavaScript Promisify: Convert Callbacks into Promises
Introduction Before Promises and async/await became popular, JavaScript used callbacks to handle asynchronous operations. For example, a function might call a callback when an...
JavaScript Interview: Implement deepOmit() Without Mutating the Original Object
Problem Statement Implement deepOmit(val, keys) to remove specified keys from an object, including nested objects and arrays, without modifying the original object . For...
Implementing mapAsyncLimit in JavaScript
1. Problem Statement Implement mapAsyncLimit(iterable, callbackFn, size) to apply an asynchronous callback to every array element while limiting the number of tasks running...
Implementing getElementsByStyle() in JavaScript
How can we find all DOM elements that match a specific CSS property and value without using querySelectorAll()? The solution uses DOM traversal and recursion to visit every...
Implementing Throttle in JavaScript: A Beginner-Friendly Guide
In JavaScript, events such as scrolling, resizing, and mouse movement can fire hundreds of times within a few seconds. Continue reading on JavaScript in Plain English »