Javascript – how to make a traffic light count properly
how do i make this traffic light count properly the duration ("duração"), after the first cicle, starts a visual glitch on the timer glitch var sinal = setTimeout(red, 0) function red() { let i = 0 vermelho.style.backgroundColor = cores[0]; amarelo.style.backgroundColor…