// Set the countdown secondsvar countdownSeconds = 60;
// Set the timer intervalvar countdownTimer = setInterval(function() {
// If the countdown is overif(countdownSeconds == 0) {
// Stop the timerclearInterval(countdownTimer);
// Display the countdown is overconsole.log("Countdown is over!");
} else {
// Display the countdown secondsconsole.log(countdownSeconds);
// Decrease the countdown seconds by 1 countdownSeconds--;
}
}, 1000); // Timer interval is 1 second (1000 milliseconds)