Browser APIs JavaScript Interview Questions
5 curated browser apis interview questions for JavaScript — with short answers, detailed explanations, and interview tips. Ideal for Fresh through Tech Lead prep.
Compare the Fetch API with XMLHttpRequest. When might XHR still appear?
Fresh / InternComparison
Compare localStorage, sessionStorage, and IndexedDB for client-side persistence.
JuniorComparison
What problem does Intersection Observer solve, and how would you use it?
Mid-LevelScenario
When should you use Web Workers, and what are their limitations?
SeniorArchitecture
How would you choose a service worker caching strategy for an authenticated SPA?
Tech LeadArchitecture