Skip to content

Commit 0807e12

Browse files
committed
feat: redid the quiz after bugfix
1 parent 2bc380a commit 0807e12

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ quiz:
99
josephcaballero:
1010
- $2y$10$FmVJ1V9hSIUbi8DGx4cq5.wPOMq5en312H4zb5H2AJUDtDeWJg74e
1111
- $2y$10$vI6tL8o2P23w/bh5tYvyf.iiH42BQHl5Rh1teG8mMaMfj1XNhO/..
12+
- $2y$10$BSPejBBqvmV7iEilAy7kOOaBCtIVDWxfvH53b/v106qadbhQeQXEW

lesson_03/quiz/src/quizzes/joseph_caballero_quiz.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export class JosephCaballeroQuiz implements QuizQuestionProvider {
1414
return [
1515
JosephCaballeroQuiz.makeQuestion0(),
1616
JosephCaballeroQuiz.makeQuestion1(),
17+
JosephCaballeroQuiz.makeQuestion2(),
1718
];
1819
}
1920

@@ -30,12 +31,25 @@ export class JosephCaballeroQuiz implements QuizQuestionProvider {
3031
[AnswerChoice.C, 'An animal'],
3132
[AnswerChoice.D, 'Whatever you want it to be!'],
3233
]),
33-
AnswerChoice.UNANSWERED,
34+
AnswerChoice.B,
3435
); // Replace `UNANSWERED` with the correct answer | B.
3536
}
3637

3738
private static makeQuestion1(): QuizQuestion {
38-
return new QuizQuestion(1, 'What is the styling language for HTML?', '');
39+
return new QuizQuestion(1, 'What is the styling language for HTML?', 'CSS');
3940
// Provide an answer.
4041
}
42+
private static makeQuestion2(): QuizQuestion {
43+
return new MultipleChoiceQuizQuestion(
44+
2,
45+
'What does CSS stand for ?',
46+
new Map<AnswerChoice, string>([
47+
[AnswerChoice.A, 'Computing Style Software'],
48+
[AnswerChoice.B, 'Cascading Style Sheets'],
49+
[AnswerChoice.C, 'Circle Stuff and Stuff'],
50+
[AnswerChoice.D, 'Whatever you want it to be!'],
51+
]),
52+
AnswerChoice.B,
53+
); // Replace `UNANSWERED` with the correct answer | B.
54+
}
4155
}

0 commit comments

Comments
 (0)