
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
You execute code with a delay with "ref = setTimeout(fn, delay)". You can abort the execution of that code with "clearTimeout(ref)"
Whenever you call the function, you should abort any existing scheduled code. Then, you should schedule code to be executed after some delay.