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

London 9 Turing - Zahraa Tayyar - JavaScript Core 2 - Week 1#164

Open
zahraateee wants to merge 6 commits intoCodeYourFuture:mainfrom
zahraateee:main
Open

London 9 Turing - Zahraa Tayyar - JavaScript Core 2 - Week 1#164
zahraateee wants to merge 6 commits intoCodeYourFuture:mainfrom
zahraateee:main

Conversation

@zahraateee
Copy link

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: Zahraa Tayyar
  • Your City: London
  • Your Slack Name: Zahraa

Homework Details

  • Module: JAvaScript Core 2
  • Week: 1

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

// write code here
shoppingList = {
name: recipe.name,
items: recipe.ingredients.filter(value => pantry.fridgeContents.includes(value) && pantry.cupboardContents.includes(value))

Choose a reason for hiding this comment

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

Nice one!

Copy link

@selinfildis selinfildis left a comment

Choose a reason for hiding this comment

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

Nice job, left a couple of comments that would help you resolve failing tests :)

}
}

return balance;

Choose a reason for hiding this comment

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

it looks like your return statements on this file are misplaced, they should be in the function definitions, similar to the ones you've written on 3-shopping-list.js

}
}

return balance;

Choose a reason for hiding this comment

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

similar to the above, this should be in the related function :)

Choose a reason for hiding this comment

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

Fixing the return statement's location would also help with the tests :) https://github.com/CodeYourFuture/JavaScript-Core-2-Coursework-Week1/actions/runs/3861676813/jobs/6582791676

console.log(cashregister.orderBurger(balance))

let falafelBalance = 7.25;
console.log(cashRegister.orderFalafel(Falafelbalance))

Choose a reason for hiding this comment

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

I think the argument for the orderFalafel should be falafelBalance instead


let myCountry = "UnitedKingdom";
let myCapitalCity; // complete the code
let myCapitalCity = capitalCities["UnitedKingdom"] // complete the code

Choose a reason for hiding this comment

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

here you can use the variable myCountry to fetch the capital for the country, as the variable is assigned the string UnitedKingdom :)

Comment on lines +25 to +28
basketballTeam.topPlayers
.sort()
.forEach(value => console.log(value))

Choose a reason for hiding this comment

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

🙌

};

console.log(car["colour"]);
console.log(car["colour"]); // "colour" isnt a property in the "car" object. "colour" is undefined.

Choose a reason for hiding this comment

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

Awesome 🤩

Comment on lines +11 to +13
getName: function(name) {
console.log(`Student name: ${name}`)
}

Choose a reason for hiding this comment

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

Nice one!

@selinfildis selinfildis 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