<div id="test"></div>
//"use strict";
let timeout = 100;
let step = 13.33;
let a = 0, b = 1000;
let el = document.getElementById('test');

(function() {
  if( a < b ) {
    setTimeout(arguments.callee, timeout);
    el.innerHTML = a.toFixed(2);
    a += step;
  } else {
    el.innerHTML = b.toFixed(2);
  }
})();

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.