Clicking “start multiple intervals” below will start two intervals running that update every 5 seconds. The unique timer ids are the values returned by the setInterval function.
Clicking “clear all intervals” will clear all running intervals.
To clear a specific interval, you need to use that interval’s unique timer id. Clear each interval individually using their corresponding buttons.
The original post explaining in detail is here.