Как выводить миллисекунды вместе с секундами?
вот мой таймер
let waitTimeShow = $('#waitTimeShow');
let mutShow = $('#mutShow');
let timerTime = 5;
waitTimeShow.html(timerTime + "s");
function timer(){
timerTime--;
waitTimeShow.html(timerTime + "s");
if (timerTime == 0){
requestAnimationFrame(animate)
waitTimeShow.addClass('hide');
mutShow.removeClass('hide');
setTimeout(function(){},1000);
} else {
setTimeout(timer,1000);
}
}
setTimeout(timer,1000);