Random Quote Generator - setInterval

Random Quote Generator - setInterval
0

#1

Hi

I’m working on the random quote generator and decided to have a interval showing of quotes if no button were clicked. I can’t get the interval to cancel, any ideas?

https://codepen.io/happyhd/pen/QMrLGR/?editors=0010


#2

Yes, it’s called clearInterval()

WindowOrWorkerGlobalScope.clearInterval()