0

var counter = document.getElementsByClassName("counter");
var followers = document.getElementsByClassName("followers");
var count = 1;
setInterval(() => {

  count++;
  counter.innerHTML = count;

}, 3000);
<div class="d-flex">
  <span class="counter">0</span>
  <span class="followers">0</span>

</div>

In the above code i want to print the count number instead of my html content but not getting proper result what's the issue in that.If you got it, please let me know

0 Answers0