Senior & Lead Track (8 weeks)
For the parts of a lead loop that coding practice does not cover.
Lead and staff loops weigh architecture, system design depth, and leadership as heavily as coding. This track goes through every system design question (application, component and platform), the performance/security/architecture concepts leads are expected to own, and the full behavioral bank. Pair it with the Senior & Lead Track guide.
0 / 116 completed
Weeks 1–2: Application system design
0/13
1.News Feed (e.g. Facebook)
Design an infinitely scrolling, personalised social feed with posts, reactions, comments and live updates.
2.Photo Sharing App (e.g. Instagram)
Design a photo-first social app: image feed, profile grid, upload with client-side processing, and likes and comments.
3.Chat Application (e.g. Messenger)
Design a real-time web messenger with conversations, delivery and read receipts, typing indicators and offline support.
4.Collaborative Document Editor (e.g. Google Docs)
Design a real-time collaborative rich-text editor with presence, comments, offline edits and version history.
5.Collaborative Spreadsheet (e.g. Google Sheets)
Design a browser spreadsheet with a virtualized grid, formula engine, dependency graph and real-time co-editing.
6.Collaborative Design / Drawing Tool (e.g. Figma, Canva)
Design a multiplayer vector canvas with an infinite viewport, shape editing, hit testing, cursors and undo.
7.E-commerce Marketplace (e.g. Amazon)
Design the front end of a large e-commerce site: search and listing, product detail, cart and checkout, with SEO and Core Web Vitals in mind.
8.Email Client (e.g. Outlook / Gmail)
Design a web email client: folders and threaded inbox, safe rendering of HTML emails, composer with drafts, offline and keyboard-driven workflows.
9.Music Streaming Web Player (e.g. Spotify)
Design a music web app with uninterrupted playback across navigation, a queue, gapless streaming, DRM and multi-device control.
10.Pinterest (Masonry Image Feed)
Design a Pinterest-style home feed: a responsive masonry grid of variable-height pins with infinite scroll and virtualization.
11.Travel Booking Site (e.g. Airbnb)
Design a stays marketplace: search with map and date range, listing details, availability calendar and a reliable booking flow.
Week 3: Component system design
0/9
1.Autocomplete / Typeahead Component
Design a reusable, accessible autocomplete component with debounced search, caching, race handling and keyboard navigation.
2.Dropdown Menu Component
Design an accessible dropdown/action menu with submenus, typeahead, robust positioning and focus management.
3.Image Carousel Component
Design an accessible, performant image carousel with swipe, autoplay, lazy loading and responsive images.
4.Modal Dialog Component
Design an accessible modal dialog: native dialog vs custom, focus trapping, scroll locking, stacking and API.
5.Embeddable Poll Widget
Design a poll widget embeddable on many sites, with voting, live results, abuse prevention and isolation.
6.Data Table / Data Grid Component
Design a reusable data table with sorting, filtering, pagination, selection, column resizing and virtualization.
7.Rich Text Editor Component
Design a reusable rich text editor: document model vs contenteditable, transactions, plugins, paste, IME and accessibility.
Weeks 4–5: Platform & org-scale design
0/11
1.Design System at Scale
Design a company-wide design system (tokens, components, docs, tooling) consumed by dozens of teams across multiple frameworks and brands.
2.Feature Flag and Experimentation Platform
Design a feature-flag and A/B testing platform with targeting rules, client SDKs, real-time updates, exposure logging and governance.
3.Front-End Monorepo and CI Platform
Design the repository, build, test and CI/CD platform for 30 front-end teams sharing one monorepo, with affected builds, remote caching and governance.
4.Front-End Observability Platform (RUM, Errors, Tracing)
Design an org-wide front-end observability platform covering real user monitoring, error tracking with source maps, and distributed tracing.
5.Micro-Frontend Platform
Design a platform that lets many teams build, deploy and compose independently released front-ends into one coherent product.
6.Real-Time Collaborative Whiteboard
Design a Miro/FigJam-style multiplayer whiteboard: canvas rendering at scale, CRDT-based sync, presence, offline, permissions and the multiplayer service.
8.Analytics Event Pipeline and Client SDK
Design a product-analytics client SDK and event pipeline with a governed tracking plan, reliable delivery, consent and privacy, used by every team.
9.Embeddable Widget SDK (Third-Party Script)
Design a third-party embeddable widget and loader script that runs on thousands of customer sites, covering isolation, versioning, security and performance.
Week 6: Performance, security & architecture concepts
0/43
1.Explain the concept of debouncing and throttling
Run after activity stops versus at most once per interval, with implementations and use cases.
2.Explain the concept of lazy loading and how it can improve performance
Deferring images, iframes, code and data until needed, and when not to.
3.How do you decide where to code-split a large front-end app, and what can go wrong?
Route, component and vendor splitting, request waterfalls, chunk granularity and caching trade-offs.
4.What are some common security headers and their purpose?
CSP, HSTS, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, COOP and friends.
5.What are the Core Web Vitals today, how are they measured, and what are the thresholds?
LCP, INP and CLS: what each one captures, the p75 thresholds, and lab vs field data.
6.What are some best practices for handling sensitive data in JavaScript?
What never belongs in the client, token storage, transport, logging and memory hygiene.
7.What causes Cumulative Layout Shift (CLS) and how do you fix it?
Session windows, the usual culprits (images, ads, fonts, injected banners) and how to debug shifts.
8.How would you set up image optimisation for a large, image-heavy site?
Formats, responsive images, lazy loading, priority hints, image CDNs and governance at scale.
9.What are some common performance bottlenecks in JavaScript applications?
Large bundles, long tasks, layout thrashing, memory leaks, network waterfalls and over-rendering.
10.Explain preload, prefetch, preconnect, dns-prefetch and modulepreload. When does each help or hurt?
Resource hints, speculation rules and 103 Early Hints, with the costs of over-hinting.
11.Explain stored, reflected and DOM-based XSS. Does using React make you safe?
The three XSS classes, what JSX escaping does and doesn't cover, and defence in depth.
12.How would you design and roll out a Content Security Policy for an existing production app?
Strict nonce-based CSP, strict-dynamic, report-only rollout, reporting, and the directives that matter.
13.What are the most common misconceptions about CORS as a security mechanism?
Why CORS relaxes rather than adds protection, origin reflection bugs, null origins and what actually protects APIs.
14.What is CSRF, and is SameSite=Lax enough to prevent it in 2025?
How CSRF works, SameSite modes and browser defaults, same-site vs same-origin, and layered defences.
15.How do you find and fix a poor INP (Interaction to Next Paint)?
Input delay, processing time and presentation delay: finding the slow interaction and fixing each phase.
16.Your field LCP is 4.1 s on mobile. How do you diagnose and improve it?
Breaking LCP into TTFB, resource load delay, load duration and render delay, and fixing each part.
17.What is a long task, and what are the ways to break one up and yield to the main thread?
The 50 ms rule, setTimeout vs scheduler.yield vs postTask, isInputPending, Workers and the LoAF API.
18.How can you optimize network requests for better performance?
Fewer, smaller, earlier, cached and prioritised requests.
19.How can you implement secure authentication and authorization in JavaScript applications?
Session cookies vs tokens, OAuth/OIDC with PKCE, passkeys, and server-enforced authorization.
20.Where should a browser app store JWTs or session tokens: localStorage, memory or cookies?
XSS vs CSRF exposure, HttpOnly cookies, in-memory access tokens with refresh rotation, and the BFF pattern.
21.What is the back/forward cache (bfcache), and what makes a page ineligible for it?
Instant back navigations, pageshow/pagehide, unload and other blockers, and how to test eligibility.
22.What is clickjacking, and how do you defend against it?
UI redressing via invisible iframes, frame-ancestors vs X-Frame-Options, and legitimate embedding.
23.Explain the concept of input validation and its importance in security
Server-side allowlist validation with schemas, versus output encoding, and why client checks are UX only.
24.What are some tools and techniques for identifying security vulnerabilities in JavaScript code?
Dependency audits, SAST, secret scanning, DAST, CSP reporting and code review in CI.
25.When should you virtualise a long list, how does it work, and what does it cost you?
Windowing mechanics, variable heights, accessibility and find-in-page trade-offs, and alternatives like content-visibility.
26.What are the benefits of using a module bundler?
Graph resolution, transforms, minification, code splitting and cache-friendly output.
27.How can you prevent SQL injection vulnerabilities in JavaScript applications?
Parameterized queries, ORMs, query builders and least privilege on the Node.js side.
28.What is Subresource Integrity (SRI), and how do you manage the risk of third-party scripts?
Integrity hashes, crossorigin, why SRI doesn't fit evergreen tags, and isolation strategies for third parties.
29.Explain the concept of tree shaking in module bundling
Dead-code elimination of unused exports, side effects, and what defeats it.
30.How do you load web fonts without hurting LCP and CLS?
font-display, preloading, subsetting, self-hosting, variable fonts and metric-matched fallbacks.
31.How do you safely embed untrusted content with iframe sandboxing?
sandbox tokens, the allow-scripts + allow-same-origin trap, separate origins, allow (Permissions Policy) and srcdoc.
32.What are some tools that can be used to measure and analyze JavaScript performance?
DevTools Performance panel, Lighthouse, RUM with web-vitals, bundle analysers and profilers.
33.How do memory leaks happen in long-lived SPAs, and how would you find one?
Detached DOM, forgotten listeners, timers, caches and closures, plus the heap-snapshot workflow.
34.How do you reduce supply-chain risk from npm dependencies in a front-end codebase?
Typosquatting, compromised maintainers, install scripts, lockfiles, provenance and dependency governance.
35.How can you optimize DOM manipulation for better performance?
Batching reads and writes, fragments, delegation, virtualization and content-visibility.
36.How would you build real-user performance monitoring (RUM) with PerformanceObserver?
Entry types, buffered observers, beaconing on visibilitychange, sampling, percentiles and segmentation.
37.What are Trusted Types, and how do they help eliminate DOM-based XSS?
Locking down injection sinks with CSP require-trusted-types-for, policies, default policies and rollout.
38.Compare CSR, SSR, SSG, ISR and streaming SSR. How do you choose a rendering strategy per page?
Trade-offs in TTFB, LCP, INP, freshness, cost and complexity, with a per-route decision framework.
39.What is islands architecture, and how does it compare with full hydration and React Server Components?
Static HTML with isolated interactive islands, hydration directives, resumability, and when islands fit.
40.What are React Server Components and how do they differ from SSR?
Server-only components that ship no JS, the use client boundary, and how RSC complements SSR.
41.How does streaming server-side rendering with Suspense work in React?
Shell first, boundaries streamed later, and selective hydration on the client.
Weeks 7–8: Leadership & behavioral
0/40
1.Tell me about a failure and what you learned
Describe a real failure you were responsible for, how you handled the fallout and what changed in how you work afterwards.
2.What is the hardest bug you have fixed?
Tell a debugging story that shows systematic investigation, technical depth and how you prevented the bug class from returning.
3.Do you have any questions for me?
Use the last minutes of the interview to learn what you need to decide and to show how a lead thinks about a team.
4.Receiving critical feedback
Share a time you received tough feedback, how you processed it, what you changed and how you checked that the change stuck.
5.Tell me about yourself (lead edition)
A two-minute career pitch that frames you as a front-end lead: scope, impact, how you lead and why this role is the next step.
6.Why are you leaving your current job?
Answer honestly and positively, framing the move around what you are moving towards, including tricky cases like layoffs or short tenures.
7.Why do you want to work here?
Give a specific, researched answer that connects the company's product and engineering challenges to your experience and goals.
8.Tell me about a time you delegated something important
Show how you hand off meaningful work, set up the person to succeed, and resist taking it back when it gets hard.
9.Tell me about delivering under a tight deadline
Show how you planned, cut risk and protected quality and people when a front-end delivery date could not move.
10.A disagreement with a product manager
Show how you handled a real conflict with product over scope, quality or approach, and reached a decision that served users and the business.
11.A disagreement with your manager
Describe pushing back on your own manager's decision, how you made your case, and how you committed once a decision was made.
12.Giving hard feedback
Describe delivering difficult feedback to a colleague, especially a strong or senior one, in a way that changed behaviour and kept trust.
15.A production incident you owned
Walk through a front-end production incident: detection, mitigation, communication, root cause and the blameless follow-up that prevented a repeat.
16.Tell me about a project you led end to end
Walk through a front-end initiative you owned from problem framing to measured outcome, showing scope, trade-offs and how you led people.
18.Tell me about a time you said no to a stakeholder
Show how you push back on a senior stakeholder's request with data, offer alternatives and keep the relationship intact.
19.A technical decision you would make differently
Describe a significant front-end architecture decision that aged badly, how you recognised it and what you changed in how you decide.
20.How do you lead a remote or distributed team?
Explain how you keep a team spread across time zones aligned, unblocked and connected, with a concrete example of what you changed.
21.Tell me about a time you drove alignment across multiple teams
Show how you got several teams with different priorities to agree on and deliver a shared front-end change.
23.Influencing without authority
Show how you got other teams to adopt a front-end change you could not mandate, using evidence, low-friction paths and allies.
24.Tell me about a time you introduced a design system
Describe how you started or scaled a design system, partnered with design, drove adoption across teams and measured its value.
25.Mentoring an underperforming engineer
Describe how you diagnosed why an engineer was struggling, set clear expectations, supported them and handled the outcome honestly.
27.Prioritising tech debt against features
Explain how you made the business case for front-end tech debt work, balanced it with roadmap pressure and showed the payoff.
29.Tell me about a time you changed your mind
Show that you hold strong opinions loosely: what evidence or argument changed your position, and how you handled the reversal publicly.
30.Tell me about a time you advocated for accessibility
Show how you made accessibility a team and organisation priority, not a one-off fix, and how you measured progress.
31.How do you handle burnout and keep a sustainable pace?
Explain how you spotted burnout on your team or in yourself, what you changed in planning and on-call, and how delivery held up.
33.Tech lead, staff engineer or engineering manager: which track and why?
Explain the differences between the lead, staff and manager paths, and justify your own choice with evidence from your work.
34.Tell me about a time you negotiated scope cuts
Explain how you reshaped a front-end deliverable with product and design so it shipped on time without losing what users needed most.
35.How do you ramp up when you join or take over a new team?
Describe how you learned a new codebase, built trust and found your first high-impact contribution after joining or inheriting a team.