plain javascript - increment number using function like $.animate with comma -


I am developing a game that will bring the sum of addition or subtraction to life.

jquery solution

How can I do this in a side javascript?

I want to avoid using jquery

In this solution, someone Also does not require jQuery

  var = 40000, = 50000; Work increment () {setTimeout (function () (from ++; if (from & lt; = from) {document.getElementById ("test"). InnerHTML =; increment ();}}, 10);} Increment ();  

Please go to jsfiddle


Comments

Popular posts from this blog

GO: Serve static pages -

Folder list php -

java - how to parse a JSON string into ObjectNode in Jackson? -