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

WM4 - Azin Yadegari - JavaScript -Core2-Week1#92

Open
AzinYad wants to merge 6 commits into
CodeYourFuture:mainfrom
AzinYad:main
Open

WM4 - Azin Yadegari - JavaScript -Core2-Week1#92
AzinYad wants to merge 6 commits into
CodeYourFuture:mainfrom
AzinYad:main

Conversation

@AzinYad
Copy link
Copy Markdown

@AzinYad AzinYad commented Sep 15, 2022

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: Azin
  • Your City: Birmingham
  • Your Slack Name:AzinYad

Homework Details

  • Module: JS Core2
  • Week:1

Notes

  • What did you find easy?

  • What did you find hard?
    extra was a bit challenging

  • What do you still not understand?

  • Any other notes?

Copy link
Copy Markdown

@jdbevan jdbevan left a comment

Choose a reason for hiding this comment

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

Great effort, well done formatting the code too!

Comment thread 2-mandatory/1-recipes.js
// write code here
let shoppingFor = {};
let shoppingList = [];
// shoppingList= pantryItems.filter(item => !recipe["ingredients"].includes(item))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done solving the task! Why comment out these two lines in preference for the for loop?

let cashRegister = {
// write code here
}
orderBurger(balance) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is great :) Can you think of a way to avoid duplicating the price of the burger and falafel? Can you think of a reason we'd want to avoid duplicating the price all over the code?

Comment thread 3-extra/1-count-words.js
console.log(str);
str.forEach((word) => {
if (word === "") {
return wordCount;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice job! What is the purpose of this line of code?

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