-
Notifications
You must be signed in to change notification settings - Fork 25
feat: Ran test and got 3/4 then 4/4 using command #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
anthonydmays
merged 7 commits into
code-differently:main
from
Josephcabs:feature-Lesson03
Sep 30, 2024
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
421ad4a
feat: Ran test and got 3/4 then 4/4 using my
Josephcabs 2bc380a
Merge branch 'main' of
Josephcabs 0807e12
feat: redid the quiz after bugfix
Josephcabs fd8612d
feat: extra to quiz.ts file after bugfix
Josephcabs 620d717
feat: removed package-lock.json
Josephcabs 5baad5a
feat: updated branch from main for pull
Josephcabs 603a09f
Merge branch 'main' of https://github.com/Josephcabs/code-differently…
Josephcabs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { | ||
AnswerChoice, | ||
MultipleChoiceQuizQuestion, | ||
QuizQuestion, | ||
QuizQuestionProvider, | ||
} from 'codedifferently-instructional'; | ||
|
||
export class JosephCaballeroQuiz implements QuizQuestionProvider { | ||
getProviderName(): string { | ||
return 'josephcaballero'; | ||
} | ||
|
||
makeQuizQuestions(): QuizQuestion[] { | ||
return [ | ||
JosephCaballeroQuiz.makeQuestion0(), | ||
JosephCaballeroQuiz.makeQuestion1(), | ||
JosephCaballeroQuiz.makeQuestion2(), | ||
]; | ||
} | ||
|
||
private static makeQuestion0(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
0, | ||
'What is HTML?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'A food branch'], | ||
[ | ||
AnswerChoice.B, | ||
'A hypertext markup language for frontend development', | ||
], | ||
[AnswerChoice.C, 'An animal'], | ||
[AnswerChoice.D, 'Whatever you want it to be!'], | ||
]), | ||
AnswerChoice.B, | ||
); // Replace `UNANSWERED` with the correct answer | B. | ||
} | ||
|
||
private static makeQuestion1(): QuizQuestion { | ||
return new QuizQuestion(1, 'What is the styling language for HTML?', 'CSS'); | ||
// Provide an answer. | ||
} | ||
private static makeQuestion2(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
2, | ||
'What does CSS stand for ?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Computing Style Software'], | ||
[AnswerChoice.B, 'Cascading Style Sheets'], | ||
[AnswerChoice.C, 'Circle Stuff and Stuff'], | ||
[AnswerChoice.D, 'Whatever you want it to be!'], | ||
]), | ||
AnswerChoice.B, | ||
); // Replace `UNANSWERED` with the correct answer | B. | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.