I'd like my countdown timer to show double digits, like "53:00" instead of "53:0". Not sure what's going wrong here? Thank you!
function convertSeconds(s) {
var min = Math.floor(s / 60);
var sec = s % 60;
return nf(min, 2) + ':' + nf(sec, 2);
}
nf()is - you need to add that code to your question.nf()function written somewhere - in a library you have included for example, its not a built in part of JavaScript.nfis not a built-in Javascript function, you will need to show where it's defined, otherwise it's impossible to tell what it is and what it does.