W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
All fields
“DOM & Events” in Information Technology
12 questions across 1 technology.
Information Technology
12 questions in 1 technology
#
Question
Technology
Topic
Level
1
How do you create and dispatch a custom
DOM
event?
JavaScript › DOM & Events
JavaScript
DOM
&
Events
Intermediate
2
How does MutationObserver let you react to
DOM
changes made by other code?
JavaScript › DOM & Events
JavaScript
DOM
&
Events
Advanced
3
What is event bubbling?
JavaScript › DOM & Events
JavaScript
DOM
&
Events
Beginner
4
What does event.preventDefault() do?
JavaScript › DOM & Events
JavaScript
DOM
&
Events
Beginner
5
How do you select and modify an element's text content?
JavaScript › DOM & Events
JavaScript
DOM
&
Events
Beginner
6
What is event delegation and why is it a performance best practice?
JavaScript › DOM & Events
JavaScript
DOM
&
Events
Intermediate
7
What's the difference between event.target and event.currentTarget?
JavaScript › DOM & Events
JavaScript
DOM
&
Events
Intermediate
8
What's the difference between the capturing and bubbling phases of event propagation?
JavaScript › DOM & Events
JavaScript
DOM
&
Events
Advanced
9
How do you properly clean up event listeners to avoid memory leaks?
JavaScript › DOM & Events
JavaScript
DOM
&
Events
Advanced
10
What is the difference between passive and non-passive event listeners for scroll performance?
JavaScript › DOM & Events
JavaScript
DOM
&
Events
Advanced
11
What is the storage event and when does it fire?
JavaScript › Browser Storage & Web APIs
JavaScript
Browser Storage & Web APIs
Intermediate
12
How can an unremoved event listener cause a memory leak?
JavaScript › Memory Management & Garbage Collection
JavaScript
Memory Management & Garbage Collection
Intermediate