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

London9 - Hengameh Mohammadkhani-JavaScript-Core-2-Coursework_Week1 - #175

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

London9 - Hengameh Mohammadkhani-JavaScript-Core-2-Coursework_Week1#175
HeniMKH wants to merge 3 commits into
CodeYourFuture:mainfrom
HeniMKH:main

Conversation

@HeniMKH

@HeniMKH HeniMKH commented Dec 24, 2022

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?

@HeniMKH

HeniMKH commented Dec 24, 2022

Copy link
Copy Markdown
Author

@mattietea

if (student["attendance"] >= 90 && student["examScore"]> 60){
student["hasPassed"] = true;
}

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.

well done hengameh :), I am not sure if you needed to show false value too, but you can add else { student["hasPassed"] = false;}

let allContent = pantry.fridgeContents.concat(pantry.cupboardContents);
let missingIngredients = recipe.ingredients
.filter(ingredient => allContent.indexOf(ingredient) === -1);
return {name: recipe.name ,

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.

well done Hengameh :). you can also do this with includes instead of indexOf

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.

sure

@ellietms ellietms added the reviewed A mentor has reviewed this code label Dec 28, 2022
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