script.js
const imgPlayPause = document.querySelector('.app__card-primary-butto-icon');
//....
function iniciarOuPausar(){
if(intervaloId){
imgPlayPause.setAttribute('src', '/imagens/play_arrow.png');
somPause.play();
zerar();
return;
}
somPlay.play();
imgPlayPause.setAttribute('src', '/imagens/pause.png');
intervaloId = setInterval(contagemRegressiva, 1000);
iniciarOuPausarBt.textContent = 'Pausar';
}
function zerar(){
clearInterval(intervaloId);
iniciarOuPausarBt.textContent = 'Começar';
intervaloId = null;
}