Skip to content
This repository was archived by the owner on Oct 26, 2020. It is now read-only.

Conversation

@azadaafo
Copy link

@azadaafo azadaafo commented Jul 7, 2020

Your Details

Your Name:
Your City:
Your Slack Name:

Homework Details

Module:
Week:

Copy link

@zoltan-gal zoltan-gal left a 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%") {

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.

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) {

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") {

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants