Home / Javascript Tips Generated By ChatGPT / Clearing an Interval in Javascript Use clearInterval to stop future invocations of setInterval. Source Code let intervalId = setInterval(() => console.log('Hello'), 1000); clearInterval(intervalId);