This repository was archived by the owner on Jan 14, 2024. It is now read-only.
Glasgow Class 6 - nasir ali - JS1 - Week 1 - #478
Open
ali-nasir-ali wants to merge 11 commits into
Open
Conversation
Dedekind561
suggested changes
Feb 17, 2023
| */ | ||
| function checkAnswer(answer) { | ||
| function checkAnswer(main_moods_selection) { | ||
| //Write your code in here |
Contributor
There was a problem hiding this comment.
Hello @ali-nasir-ali ,
Thank your submission - seeing some great work here! Excellent start!
Your tests for the extra section aren't quite passing at the moment. Here are a few things to consider:
- Look carefully at the test cases for
checkAnswer:
test("checkAnswer works for `It is decidedly so.`", () => {
expect(checkAnswer("It is decidedly so.")).toEqual("very positive");
});Look carefully at how checkAnswer is being called here in this test. What argument is being passed to checkAnswer ?
Compare this with your current implementation of checkAnswer to see if you can figure out how to update the function.
Author
There was a problem hiding this comment.
Thank you Mitch Lloyd, with your help I finally figured out that the function name was literal not figurative. and was able to solve it by googling the write questions. Again many thanks.
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in
HOW_TO_MARK.mdin the root of this repositoryYour Details
Homework Details
Notes
basic variables
8 ball
8 ball