-
-
Notifications
You must be signed in to change notification settings - Fork 454
Azad week 3 #1019
base: manchester3
Are you sure you want to change the base?
Azad week 3 #1019
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you pushed everything from your local machine? There are missing codes I believe so.
I'd suggest revising the syllabus and take a look at the teachers' solution.
|
|
||
| function safeLevels() { | ||
|
|
||
| if (oxygenLevels1 >= "19.5%" && oxygenLevels1 <= "23.5%") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oxygenLevels1 should have been an input parameter instead of using the global variable from outside.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oxygenLevels1 >= "19.5%" comparison won't work because oxygenLevels1 is an array whereas "19.5%" is a string. Also, you have to parse number form the value of each array element and then compare as a number.
| /* + + + + + + + + + + + + + + */ | ||
|
|
||
| /* Now try to complete the exercise */ | ||
| function bushChecker(safeBush) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you recognised here that you need input, but you haven't used it
|
|
||
| /* Now try to complete the exercise */ | ||
| function bushChecker(safeBush) { | ||
| if (bushBerryColours1 === "pink") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, it is a comparison of an array and a string so it doesn't make sense logically.
Your Details
Your Name:
Your City:
Your Slack Name:
Homework Details
Module:
Week: