Clear all the timeout objects from webpage in Javascript
In order to clear all the timeouts on certain conditions There are a few ways to accomplish that, we are going to explore two of them. Option1: Using array to store the timeouts, then looping over to clear them The way we can accomplish this, is by simply creating some timeout instances, and store the instance into javascript array, as shown below: