function startTimer() {
    const start = Date.now();
    elapsedTime = setInterval(() => {
        // time in milliseconds
        let millis = Date.now() - start;
        // calculate minutes
        minutes.textContent = Math.floor(millis / (1000 * 60));
        // calculate seconds
        seconds.textContent = Math.floor((millis / 1000) % 60);
    }, 1000);

}
/**
 * @description Start a timer to update the minutes and seconds elapsed
 * since the player clicked on the first card.
 */
@description Start a timer to update the minutes and seconds elapsed
since the player clicked on the first card.
@description Start a timer to update the minutes and seconds elapsed since the player clicked on the first card .
function startTimer() {
    const start = Date.now();
    elapsedTime = setInterval(() => {
        let millis = Date.now() - start;
        minutes.textContent = Math.floor(millis / (1000 * 60));
        seconds.textContent = Math.floor((millis / 1000) % 60);
    }, 1000);
}
function startTimer ( ) { const start = Date . now ( ) ; elapsedTime = setInterval ( ( ) => { let millis = Date . now ( ) - start ; minutes . textContent = Math . floor ( millis / ( 1000 * 60 ) ) ; seconds . textContent = Math . floor ( ( millis / 1000 ) % 60 ) ; } , 1000 ) ; }
@description Start a timer to update the minutes and seconds elapsed
 since the player clicked on the first card.
@description Start a timer to update the minutes and seconds elapsed since the player clicked on the first card .
// time in milliseconds // calculate minutes // calculate seconds