//"use strict";
let timeout = 100;
let step = 13.33;
let a = 0, b = 1000;
let el = document.getElementById('test');
function myAwesomeFunc() {
if( a < b ) {
setTimeout(myAwesomeFunc, timeout);
el.innerHTML = a.toFixed(2);
a += step;
} else {
el.innerHTML = b.toFixed(2);
}
}
myAwesomeFunc();