assets/js/script.js
// penalty for a wrong answer is to reduce 10 seconds from the clock.
penalty for a wrong answer is to reduce 10 seconds from the clock.
penalty for a wrong answer is to reduce 10 seconds from the clock .
function applyPenalty() {
  timeLeft = timeLeft - penalty;
  if (timeLeft <= 0) {
    timeLeft = 0;
  }
}
function applyPenalty ( ) { timeLeft = timeLeft - penalty ; if ( timeLeft <= 0 ) { timeLeft = 0 ; } }
penalty for a wrong answer is to reduce 10 seconds from the clock.
penalty for a wrong answer is to reduce 10 seconds from the clock .