Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

London-9-Turing- Farnoosh-Moayeri- JavaScript -WEEK- 1#197

Open
Farnooshmo wants to merge 3 commits into
CodeYourFuture:mainfrom
Farnooshmo:main
Open

London-9-Turing- Farnoosh-Moayeri- JavaScript -WEEK- 1#197
Farnooshmo wants to merge 3 commits into
CodeYourFuture:mainfrom
Farnooshmo:main

Conversation

@Farnooshmo
Copy link
Copy Markdown

Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in HOW_TO_MARK.md in the root of this repository

Your Details

  • Your Name:
  • Your City:
  • Your Slack Name:

Homework Details

  • Module:
  • Week:

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

Comment thread 2-mandatory/1-recipes.js
recipe.ingredients.forEach((ingredient) =>
console.log(ingredient));
console.log("-------------");
});
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job, well done :)

return !pantry.fridgeContents.includes(ingredient) &&
!pantry.cupboardContents.includes(ingredient);
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job :) you can also use concat like this: pantry.fridgeContents.concat(pantry.cupboardContents) and just check if you are missing something in this array or not

return balance - MENU.burger;
} else {
return balance;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can also use ternary operator if you want :)

}
}
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job overall. keep going

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ellietms, thank you for reviewing my code and your suggestions. I keep them in mind.

@ellietms ellietms added the reviewed A mentor has reviewed this code label Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

reviewed A mentor has reviewed this code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants