Skip to content

Commit 0b68a26

Browse files
committed
shorten code more
1 parent a6c0620 commit 0b68a26

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎Sprint-2/debug/recipe.js‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ const recipe = {
1414
// const recipeKeys = Object.keys(recipe)
1515
// // console.log(recipeKeys)
1616

17-
const ingredients = recipe.ingredients;
18-
// ["olive oil","tomatoes","salt","pepper"]
19-
20-
//create a function to log line by line the elements of an array
21-
function logItemised(items) {
22-
return items.join("\n");
23-
}
24-
2517
console.log(
2618
`${recipe.title} serves ${recipe.serves}${"\n"}ingredients:${"\n"}${recipe.ingredients.join("\n")}`
2719
);

0 commit comments

Comments
 (0)