JavaScript/countdown-timer.js
//based off the stopwatch class activity
based off the stopwatch class activity
based off the stopwatch class activity
function timeConverter(timeStamp) {
    var minutes = Math.floor(timeStamp / 60);
    var seconds = timeStamp - (minutes * 60);
    if (seconds < 10) {
        seconds = "0" + seconds;
    }
    if (minutes === 0) {
        minutes = "00";
    } else if (minutes < 10) {
        minutes = "0" + minutes;
    }
    return minutes + ":" + seconds;
}
function timeConverter ( timeStamp ) { var minutes = Math . floor ( timeStamp / 60 ) ; var seconds = timeStamp - ( minutes * 60 ) ; if ( seconds < 10 ) { seconds = "0" + seconds ; } if ( minutes === 0 ) { minutes = "00" ; } else if ( minutes < 10 ) { minutes = "0" + minutes ; } return minutes + ":" + seconds ; }
based off the stopwatch class activity
based off the stopwatch class activity
//converts the time into something readable