Skip to content

Commit 522cb56

Browse files
committed
debug, and fix code
1 parent 9256b7f commit 522cb56

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Sprint-2/debug/recipe.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ const recipe = {
1212

1313
console.log(`${recipe.title} serves ${recipe.serves}
1414
ingredients:
15-
${recipe}`);
15+
${recipe.ingredients.join("\n")}`); //the DOT expression was missing in the original code.
16+
// also adding a join method to the ingredients array to log each ingredient on a new line.

0 commit comments

Comments
 (0)