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

London_Class10-Bedrije_Omuri-Javascript2-Week1#248

Open
Bedi06 wants to merge 4 commits intoCodeYourFuture:mainfrom
Bedi06:main
Open

London_Class10-Bedrije_Omuri-Javascript2-Week1#248
Bedi06 wants to merge 4 commits intoCodeYourFuture:mainfrom
Bedi06:main

Conversation

@Bedi06
Copy link

@Bedi06 Bedi06 commented Mar 25, 2023

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

Homework Details

  • Module:
  • Week:

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

ingredients: ["cinnamon", "cumin", "cocoa"],

}
console.log(mole);
Copy link

Choose a reason for hiding this comment

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

function logRecipe(recipe) {
  console.log(recipe.name);
  console.log(`Serves ${recipe.serves}`);
  console.log("Ingredients:")
  for (ingredient of recipe.ingredients) {
    ...
  }
}

Copy link

Choose a reason for hiding this comment

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

you can reuse this function to log all the recipes


let byrek={
serves:"4",
prepTime="30min",
Copy link

Choose a reason for hiding this comment

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

= should be :
and there are trailing commas

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 Jonathan for your feedback ,but i'm not sure if it should be : as they are objects

Copy link

@jxz12 jxz12 Apr 3, 2023

Choose a reason for hiding this comment

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

I do think objects need to be :, you can try to run the code yourself using node 2-mandatory/1-recipes.js to see!

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