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

London class 10-Junita Lama-javaScript2-week1#223

Open
Junitalama wants to merge 3 commits intoCodeYourFuture:mainfrom
Junitalama:main
Open

London class 10-Junita Lama-javaScript2-week1#223
Junitalama wants to merge 3 commits intoCodeYourFuture:mainfrom
Junitalama:main

Conversation

@Junitalama
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: Junita Lama
  • Your City: London
  • Your Slack Name:junita lama

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?

@Junitalama Junitalama added the review requested I would like a mentor to review my PR label Mar 22, 2023
serving: 5,
ingredients: ["pasta", "spices", "tomato" ,"cheese", "salt"],
}

Choose a reason for hiding this comment

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

The recipes you've created above look good 😄
But have another look at the instructions on lines 13-20. Seems like they want you to output the recipe in this way:

Mole
Serves: 2
Ingredients:
cinnamon
cumin
cocoa

@@ -18,7 +18,14 @@ const COUNTRY_CURRENCY_CODES = [
];

Copy link

@moneyinthesky moneyinthesky Mar 31, 2023

Choose a reason for hiding this comment

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

This looks good 👍
Small point: Keep an eye on the spacing / indentation of your code as this can make it easier for other developers to read it.


function createShoppingList(recipe) {
// write code here
}

Choose a reason for hiding this comment

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

This looks great! Nice use of the filter array method 😄

};

let cashRegister = {
// write code here

Choose a reason for hiding this comment

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

This looks good. Again - just keep an eye on the formatting and spacing of your code. For example, your orderBurger function below would be a little easier to read like this:

	orderBurger: function (balance) {
		if (balance - MENU.burger >= 0) {
			return balance - MENU.burger;
		} else {
			return balance;
		}
	},

One quick way to do this is by using Format Document in VsCode.

expect(convertScoreToGrade(83), "Z");
expect(convertScoreToGrade(83)).toEqual("A");
});

Choose a reason for hiding this comment

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

These all look good 👍

}
*/

test("Trainee name Xin, score C", () => {

Choose a reason for hiding this comment

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

This test looks good, but it's usually a good idea to give the test a name which describes the scenario it is testing. Like in this case, maybe A trainee with a score of 63 should receive a grade of C (just an example).

name: "Aman",
subjects: ["HTML", "CSS", "Databases"]
}
*/

Choose a reason for hiding this comment

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

Well done on all of these. Just remember to think about the best way to name your tests 😄
Imagine you make a change to your code - and this test starts to fail. In the test output, you will see Trainee name Aman - but this won't give you any useful information about which part of the code might be broken. Can you think of a better name for this?


// write code here

return wordCount;

Choose a reason for hiding this comment

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

Seems like you have an extra return here?

@@ -24,12 +24,36 @@
*/

Choose a reason for hiding this comment

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

Great job on this one!

@moneyinthesky
Copy link

Really good job on this coursework @Junitalama!

@moneyinthesky moneyinthesky added the reviewed A mentor has reviewed this code label Mar 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

review requested I would like a mentor to review my PR reviewed A mentor has reviewed this code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants