Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.45 KB

File metadata and controls

23 lines (18 loc) · 1.45 KB

JavaScript Interview Refresh

Focus on browser fundamentals, event handling, and language quirks to keep your JavaScript interviews sharp.

Cheat Sheet

  • Describe the event loop and microtask queue when explaining async behavior.
  • Know when to use event.preventDefault() vs returning false in handlers.
  • Share how "use strict" impacts this, variable declarations, and silent failures.

Quick Refresh

  • Explain event propagation (capture, target, bubble) and how event.preventDefault() differs from returning false.
  • Revisit ES modules versus CommonJS and how bundlers/transpilers affect delivery.
  • Recall how "use strict" changes scoping, this binding, and silent errors.

Interview Prompts

  • Preventing form submission: Compare event.preventDefault() with return 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.

Deep Dive Later