function endQuiz() {
  clearInterval(intervalId);
  var body = document.body;
  body.className = "gameOver";
  body.innerHTML = "Game over, You scored " + correctCount + "<br />" + "Enter your initials below: ";
  playerName();
}
//function to end the quiz if time is 0 or questions are completed
function to end the quiz if time is 0 or questions are completed
function to end the quiz if time is 0 or questions are completed
function endQuiz() {
  clearInterval(intervalId);
  var body = document.body;
  body.className = "gameOver";
  body.innerHTML = "Game over, You scored " + correctCount + "<br />" + "Enter your initials below: ";
  playerName();
}
function endQuiz ( ) { clearInterval ( intervalId ) ; var body = document . body ; body . className = "gameOver" ; body . innerHTML = "Game over, You scored " + correctCount + "<br />" + "Enter your initials below: " ; playerName ( ) ; }
function to end the quiz if time is 0 or questions are completed
function to end the quiz if time is 0 or questions are completed