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

London Class 9 - Farzaneh Haghani - JS2 - Week 1 - #180

Open
farzaneh-haghani wants to merge 5 commits into
CodeYourFuture:mainfrom
farzaneh-haghani:main
Open

London Class 9 - Farzaneh Haghani - JS2 - Week 1#180
farzaneh-haghani wants to merge 5 commits into
CodeYourFuture:mainfrom
farzaneh-haghani:main

Conversation

@farzaneh-haghani

Copy link
Copy Markdown

Your Details

  • Your Name: Farzaneh Haghani
  • Your City: London
  • Your Slack Name: Farzaneh Haghani

Homework Details

  • Module: JavaScript 2
  • Week: 1

Notes

  • What did you find easy? Yes

  • What did you find hard? No

  • What do you still not understand? Nothing

  • Any other notes? No

name: recipe.name,
items: missingArr
}
}

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.

Good job @farzaneh-haghani , well done.
One more thing you can do here, is maybe use concat function which will merge two arrays and put all of their values in one array and in that array you can just check once if the pantry has the fridge and cup board contents.
let allContents = pantry.fridgeContents.concat(pantry.cupboardContents) let missArr = recipe.ingredients.filter(eachIngredients => !allContents.includes(eachIngredients)) ....

@farzaneh-haghani farzaneh-haghani Jan 3, 2023

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.

Thank you @ellietms 👍 I updated.

Comment thread 3-extra/1-count-words.js
);
return wordCount;
}

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, everything looks great, Keep going 🙌🏻

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