sequential counter

Asked

Viewed 29 times

1

I’m new to Javascript so I have an accountant who keeps counting more I needed him to have at least 10 digits left while he’s counting

the script and the following

var count = new Number();
var count = 0;
function start() {
  if ((count + 1) >= 0) {
    count = count + 1;
    tempo.innerText = count;
    setTimeout('start();', 1000);
  }
}
<body onload="start();">
  <div id="tempo"></div>
</body>

I wish that when he stayed:

000001

instead

1
  • I guess I won’t be solving my poblema here. that other theme does not remove my doubt if I had not opened other more already the moderator said that this duplicate do what I do not see how to solve my poblema with other theme with questions already answered mine and a counter do not insert numbers inside the code or by imput

  • Ergon, if you don’t think it’s duplicate explain the difference in the question and we open without problems. We close to organize the site, not for lack of quality or interest in the question.

  • 1

    Eragon, the answers of the relegated question solve your problem, just give an analysis and try to understand the answers, it is very simple, but in any case, see that fiddle which is even simpler.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.