Courses / Frontend System Design, with JavaScript Foundations
Course · Beta · FreeFrontend System Design, with JavaScript Foundations
Start with how the frontend design round runs and how it is scored. Then cover the foundations interviewers test directly: values and closures, this and prototypes, promises and the browser event loop, TypeScript, the DOM and the rendering pipeline, with a timed machine coding chapter. The design half covers non-functional requirements, client fundamentals, performance, API styles and real-time transports, patterns and architectures, and security, then a step-by-step method applied to a news feed, video streaming, chat, ride-hailing and a calendar. A mock interview closes the course with four timed prompts: a resumable file uploader, a table of 50,000 rows, a shop with checkout and a shared whiteboard.
0 of 21 chapters done · saved on this device
Try a scene from chapter 1
Whole round: 45 min (for 60 minutes, give the extra time to deep dives)
Read it as steps
Eight blocks of time add up to the full round.
What you will be able to do
- Explain how a frontend design round runs, what it scores, and pace a 45-minute answer
- Predict the output of coercion, closure, this and event loop puzzles and say why
- Build debounce, throttle, promise utilities and an accessible autocomplete in plain JavaScript
- Turn performance, accessibility, browser support and i18n into concrete requirements
- Choose between REST, GraphQL, polling, SSE and WebSockets for a feature and defend the choice
- Diagnose LCP, INP and CLS problems and fix them with measured changes
- Defend a page against XSS, CSRF and clickjacking with CSP, cookies and Trusted Types
- Design a feed, video player, chat, ride-hailing and calendar frontend from requirements to trade-offs
Who it is for
Working engineers in India with about 2 to 10 years of experience who build web frontends or full-stack products and want senior frontend or full-stack roles at product companies and global teams. Students who already write JavaScript and have built a small web app can follow too.
You will need
Comfortable JavaScript and some DOM work: functions, arrays, objects, fetch and event listeners. Node 22 or later and Chrome to run the examples (they are tested on Node 24 and Chrome 157). No framework is required; the React course covers React itself.
Pick a path
Curriculum
9 modules · 21 chapters · 11 hModule 1The Frontend Interview0 of 1 done
How the frontend design round runs, what interviewers score, a method for answering and a plan for using this course.
Module 2JavaScript Foundations0 of 4 done
The language behaviour frontend rounds probe directly: values and coercion, scope and closures, this and prototypes, async code and the event loop, and TypeScript.
- Not started: 02Values, Coercion, Scope and Closures26 min · 2 scenesPrimitives, number and string traps, equality rules, scope, hoisting, closures and module scope.
- Not started: 03this, Prototypes and Classes21 min · 2 scenesHow a call site sets this, how the prototype chain finds properties, and what class syntax creates.
- Not started: 04Promises, Async Code and the Browser Event Loop28 min · 3 scenesPromises and async/await, then the real order of tasks, microtasks, animation frames and rendering.
- Not started: 05TypeScript for Frontend Engineers29 min · 2 scenesStructural types, unions and narrowing, generics, utility types, DOM types and checking data at runtime.
Module 3Browser Foundations0 of 3 done
How the DOM, events and the rendering pipeline work, then timed machine coding drills in plain JavaScript.
- Not started: 06The DOM, Events and Observers23 min · 2 scenesBuilding and querying the DOM, how events travel, delegation, listener options and the observer APIs.
- Not started: 07How the Browser Loads and Renders a Page27 min · 2 scenesFrom URL to pixels: connections, parsing, script loading, style, layout, paint and layout thrashing.
- Not started: 08Machine Coding Practice in Plain JavaScript24 min · 1 sceneTimed drills: debounce, throttle, promise utilities, deep clone, an event emitter and an autocomplete.
Module 4Requirements and Fundamentals0 of 2 done
The non-functional requirements every frontend design is judged on, and the parts every client app is built from.
- Not started: 09Non-functional Requirements29 min · 2 scenesPerformance budgets, accessibility, browser support, internationalisation and maintainability as checks.
- Not started: 10Frontend Fundamentals: Components, State, Data and Rendering31 min · 2 scenesThe layers of a client app, component contracts, kinds of state, data caching, rendering modes and storage.
Module 5Performance and APIs0 of 2 done
Make pages load and respond fast, measured the way users feel them, and choose how the client talks to its servers.
- Not started: 11Performance and Optimisation47 min · 3 scenesMeasure Core Web Vitals, then fix LCP, INP and CLS with lighter bundles, images, caching and virtual lists.
- Not started: 12API Styles, Protocols and Data Formats34 min · 2 scenesREST, GraphQL and gRPC-Web, JSON and protobuf, HTTP/2 and HTTP/3, and the real-time transports.
Module 6Patterns, Architecture and Security0 of 2 done
Patterns for structuring frontend code and the teams that own it, and the attacks a page must withstand.
- Not started: 13Frontend Design Patterns and Architectures35 min · 2 scenesCode and component patterns, one-way data flow, SPAs and islands, micro frontends and design systems.
- Not started: 14Security in Frontend Systems36 min · 3 scenesXSS and its defences, CSP, Trusted Types, CORS, cookies, CSRF, clickjacking, tokens and third-party code.
Module 7Design Problems: Method, Feed and Video0 of 3 done
A step-by-step method for the design round, applied to a social news feed and a video streaming platform.
- Not started: 15A Step-by-Step Method for Frontend Design Sessions28 min · 2 scenesRequirements, architecture, data model, interfaces, deep dives and trade-offs, with a time plan.
- Not started: 16Design a News Feed41 min · 3 scenes · interview drillA feed from requirements to trade-offs: cursors, a normalised store, infinite scroll, optimistic likes.
- Not started: 17Design a Video Streaming Platform45 min · 3 scenes · interview drillAdaptive streaming with HLS and MSE, a player state machine, captions, a fast start and progress.
Module 8Design Problems: Chat, Rides and Calendar0 of 3 done
Three real-time and stateful frontends: a chat app, a ride-hailing rider app and a calendar.
- Not started: 18Design a Chat Application47 min · 3 scenes · interview drillWebSocket transport, reconnect and resume, message states, an offline outbox and tabs that share one socket.
- Not started: 19Design a Ride-Hailing App41 min · 3 scenes · interview drillTiles and markers, live driver position over SSE, smooth movement, trip states and booking on weak networks.
- Not started: 20Design a Calendar Application39 min · 3 scenes · interview drillEvents across time zones, recurrence rules, overlapping events, drag and keyboard edits, and conflicts.
Module 9Mock Interview0 of 1 done
Four timed prompts with model answers and a rubric, to rehearse the whole round.
How this course is made
Written by the aiiolar team. Every chapter is fact-checked by a second reviewer, checked against a shared set of numbers so chapters agree, and checked for originality before it goes up. Found a mistake? Tell us and we fix it within a week.
Questions
Is this course tied to React or another framework?
No. It teaches what every framework sits on: the language, the DOM, the browser and the network. Design answers name a framework only where a choice matters. The React course covers React in depth.
How is frontend system design different from system design?
The frontend round asks how the client is built: its components, state, data fetching, rendering, performance, accessibility and security. Server scaling, databases and sharding belong to the System Design course, which this course links where a product's backend matters.
Why are there JavaScript chapters in a design course?
Frontend loops usually include a JavaScript or machine coding round alongside the design round, and design answers rely on the same knowledge: the event loop explains INP, and closures and listeners explain memory leaks. Skip them if you already know the material.
Is every example run?
Yes. Language examples run on Node 24, browser examples in Chrome through a script, and network examples against small local servers. Outputs on the page are copied from those runs, and timings are labelled as lab numbers from one machine.
Does it cover Safari and Firefox?
Examples run in Chrome only. Where other browsers differ, the course says so and cites MDN compatibility data or the vendor's own documentation.
How much time should I plan?
About 11 and a half hours of reading, plus the time you spend on the machine coding drills and the mock prompts. Many engineers do one chapter a day for three to four weeks.