setTimeout() - an edge case
Recently, I had come across a bug that needed auto-refresh after a certain point of time. And setTimeout() had been used to count down to the time and reload the page. Little did I know that setTimeout() came with a price.
As quoted on MDN Web Docs ...
divyajyotiuk.hashnode.dev2 min read
Iroegbu Iroegbu
Software developer, Computer Scientist.
Do you think using BigInt will solve the original problem instead of using
setInterval?