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

Azad week 3 #1019

Open
wants to merge 11 commits into
base: manchester3
Choose a base branch
from
Open

Azad week 3 #1019

wants to merge 11 commits into from

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.

console.log(newdessert); // returns ice cream

/* + + + + + + + */
/* Now try the exercise */

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.

values will have a remainder of 0 i.e. there are some odd numbers in the array too*/

/* + + + + + + + + + + + + + + */

/* 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

values will have a remainder of 0 i.e. there are some odd numbers in the array too*/

/* + + + + + + + + + + + + + + */

/* 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