JavaScript остановить задержку
function example(){
console.log("this is an example");
}
let functionID = setTimeout(example, 100); //the delay time is set to 100ms
clearTimeout(functionID); //cancel the setTimeout()
Sorann