I don’t know how to program this code so every time I click on BTNRIGHT or BTNLEFT the 3000ms interval restarts.
Because the problem is that the interval function is always running, and if I press a button, just at 2500ms for example, 2 images jump very quickly (because the entire project is a slide/carousel)
It would be good if you put up the link for the entire code like in REPL or Codepen, so that everyone could see how everything connects to what you have here. Is this one of the challenge in FCC or your own project?