Focus on browser fundamentals, event handling, and language quirks to keep your JavaScript interviews sharp.
- Describe the event loop and microtask queue when explaining async behavior.
- Know when to use
event.preventDefault()vs returningfalsein handlers. - Share how
"use strict"impactsthis, variable declarations, and silent failures.
- Explain event propagation (capture, target, bubble) and how
event.preventDefault()differs from returningfalse. - Revisit ES modules versus CommonJS and how bundlers/transpilers affect delivery.
- Recall how
"use strict"changes scoping,thisbinding, and silent errors.
- Preventing form submission: Compare
event.preventDefault()withreturn false, discuss when each applies, and describe proper separation of concerns for inline handlers vs. addEventListener. - Async patterns: Walk through promises, async/await, microtasks vs macrotasks, and the event loop narrative.
- State management in the browser: Outline local/session storage, cookies, and when to leverage IndexedDB.
- Read: event.preventDefault() vs. return false on Stack Overflow.
- Practice with 16 Great JavaScript Interview Questions.
- Refresh details in JavaScript "Use Strict".