protected checkAnswer()

in src/app/quiz/quiz.component.ts [132:139]


  protected checkAnswer(answer: string) {
    if (this.currentQuestion().answer === answer) {
      this.score.update((score) => score + 1);
      this.nextQuestion();
    } else {
      this.message.set('Oops, try again!');
    }
  }