Skip to content

Commit 0cdfa17

Browse files
committed
updated string concat
1 parent 72d6630 commit 0cdfa17

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Sprint-2/debug/recipe.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@ const recipe = {
1111
};
1212

1313
console.log(`${recipe.title} serves ${recipe.serves}
14-
ingredients:`);
15-
for (const ingredient of recipe.ingredients) {
16-
console.log(ingredient);
17-
}
14+
ingredients:
15+
${recipe.ingredients.join("\n")}`);

0 commit comments

Comments
 (0)