You can see the timer, and your job is to use a function that clears the setTimeout.
Memory leak
Clear timers
Report a typo
Write a program in JavaScript
let timer = setTimeout(function() {
console.log("Clear this");
}, 1000);
/* Write your code here */
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.