Hi there, can anyone please help. Trying to make a countup text work with this code but nothing happens
let startNum = 0 ;
let endNum = 200854 ;
const duration = 10 ; //1000 milisenconds
$w . onReady ( function () {
setInterval (() => {
countUp ;
}, duration );
});
function countUp ( ) {
if ( startNum <= endNum ) {
$w ( ‘numberText’ ). text = startNum . toLocaleString ();
startNum += 100 ;
}
}