Question · JavaScript and TypeScript course · Module 5: Advanced JavaScript
Memory Leaks in JavaScript
What can cause a memory leak in JavaScript?
Answer options
- Using const instead of let
- An uncleared setInterval accumulating data in an array without a limit
- Using template literals
- Declaring variables inside a function
You can check the correct answer by solving this task in the CodeWorlds game.