Conversation
zoltan-gal
left a comment
There was a problem hiding this comment.
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.
oxygenLevels1 should have been an input parameter instead of using the global variable from outside.
There was a problem hiding this comment.
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.
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.
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: