I am trying to show the countdown inside the span tags(but it's not showing) and how do I stop it from printing number again and again (if it works).
<span></span>
<script>
const countDown = (counter) => {
const displayer = document.querySelector('span');
for (counter = 10; counter >= 0; counter--) {
return displayer.counter
}
}
</script>