Skip to content

Commit c6a99b3

Browse files
committed
fix recipe
1 parent 975b0a8 commit c6a99b3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Sprint-2/debug/recipe.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Predict and explain first...
2+
3+
// This program should log out the title, how many it serves and the ingredients.
4+
// Each ingredient should be logged on a new line
5+
// How can you fix it?
6+
7+
const recipe = {
8+
title: "bruschetta",
9+
serves: 2,
10+
ingredients: ["olive oil", "tomatoes", "salt", "pepper"],
11+
};
12+
13+
console.log(`${recipe.title} serves ${recipe.serves}
14+
ingredients:
15+
${recipe}`);

0 commit comments

Comments
 (0)