Question · JavaScript and TypeScript course · Module 8: Events and the DOM
Quiz: Memory Leaks
What can cause a memory leak related to event listeners?
Answer options
- Using event delegation
- Using addEventListener instead of onclick
- Using arrow functions
- Not removing event listeners from removed elements
You can check the correct answer by solving this task in the CodeWorlds game.