const timeOutId = setTimeout(() => { console.log("I will not be printed"); }, 2000); clearTimeout(timeOutId);