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

LND10 | Adrian Ilovan | JS2-Coursework-Week1#266

Open
AdrianIlovan wants to merge 4 commits intoCodeYourFuture:mainfrom
AdrianIlovan:lnd10/london10
Open

LND10 | Adrian Ilovan | JS2-Coursework-Week1#266
AdrianIlovan wants to merge 4 commits intoCodeYourFuture:mainfrom
AdrianIlovan:lnd10/london10

Conversation

@AdrianIlovan
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: Adrian
  • Your City: London
  • Your Slack Name: AdrianIlovan

Homework Details

  • Module: javascript 2
  • Week: week 1

Notes

-I closed this pull request because I read on my notes that it's not finished, however after checking again I am PR-ing this again because it seems done , thank you :)

@AdrianIlovan AdrianIlovan requested a review from kwebster77 April 12, 2023 18:38
let dogName; // complete the code
let dogBreed; // complete the code
let dogName = dog.name; // complete the code
let dogBreed = dog.breed; // complete the code

Choose a reason for hiding this comment

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

good use of dot notation

Copy link
Author

Choose a reason for hiding this comment

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

Thank you :)

// write code here

let sortedPlayers = basketballTeam.topPlayers.sort();
sortedPlayers.forEach(player => console.log(player));

Choose a reason for hiding this comment

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

good use of foreach

Copy link
Author

Choose a reason for hiding this comment

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

Thank you :)

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 job with the exercises!

Copy link
Author

Choose a reason for hiding this comment

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

Appreciated


test("a score of 30 is grade E", () => {
expect(convertScoreToGrade(30)).toEqual("E");
});

Choose a reason for hiding this comment

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

your tests look good! Nice job
--Could you think of other ways to write the tests?

Copy link
Author

Choose a reason for hiding this comment

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

Yes! We can solve this using If/else statements, using an array to a function that converts score to grade, or using switch.

score: 63
}
*/
};

Choose a reason for hiding this comment

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

Think you are missing a bit with these tests....

Take a look at the expect function :)

Also-- I think there are about 4 more tests after this one which should be updated!

Copy link
Author

Choose a reason for hiding this comment

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

I will look into this.


let cashRegister = {
// write code here
orderBurger(balance) {

Choose a reason for hiding this comment

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

nice job! Very clean writing of this function

Copy link
Author

Choose a reason for hiding this comment

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

ta :)

title: "Mole",
servings: 2,
ingredients: ["cinnamon", "cumin", "cocoa"]
};

Choose a reason for hiding this comment

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

So this looks good, no issues with your objects. But you could try to do this as a nested object instead?

Copy link
Author

Choose a reason for hiding this comment

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

Will do!


for (let i = 0; i < recipe.ingredients.length; i++) {
let ingredient = recipe.ingredients[i];
if (!pantry.fridgeContents.includes(ingredient) && !pantry.cupboardContents.includes(ingredient)) {

Choose a reason for hiding this comment

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

This looks good! Nice use of ! and &&
--have you thought about concatenating the fridge and cupboard ingredients first?

Copy link
Author

Choose a reason for hiding this comment

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

Had problems with this one and checked GPT for help

@kwebster77
Copy link

Hi!

Really nice job on these. Both the exercises and mandatory work look good. I have put a few small comments about things you can think about, but overall really nice work!

It looks like what you thought you were missing was the writing-advanced-tests. Seems you had started on these, but still missing a few :)

If you update it and want me to review the changes you made, go ahead and select the 're-request review' under my name in the reviewers (if you have trouble, just message me).

Nice work again, and keep it up!

@kwebster77 kwebster77 added the reviewed A mentor has reviewed this code label Apr 16, 2023
@AdrianIlovan AdrianIlovan changed the title Lnd10/london10 Lnd10/adrian ilovan/JavaScript-Core-2-Coursework-Week1 Jun 6, 2023
@AdrianIlovan AdrianIlovan changed the title Lnd10/adrian ilovan/JavaScript-Core-2-Coursework-Week1 LND10 | Adrian Ilovan | JS2-Coursework-Week1 Jun 6, 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