document.querySelectorAll('.tecla').forEach(function(tecla) { tecla.addEventListener('click', tocaSomPom); });
document.querySelectorAll('.tecla').forEach(function(tecla) { tecla.addEventListener('click', tocaSomPom); });
Oi Renato, tudo bem?
Muito obrigada por compartilhar com a gente o seu código! E parabéns por praticar enquanto assiste as aulas, isso é super importante para fixar bem o conteúdo.
Um abraço e bons estudos.