Skip to content

Commit db07953

Browse files
Making change in the debug section
1 parent 33d17a2 commit db07953

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Sprint-2/debug/author.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// This program attempts to log out all the property values in the object.
44
// But it isn't working. Explain why first and then fix the problem
5-
5+
// this function have 2 bugs, one is that the since object is not iterable so by using for of loop is will not work. The second is that is only print out property name not property value
66
const author = {
77
firstName: "Zadie",
88
lastName: "Smith",
@@ -12,5 +12,5 @@ const author = {
1212
};
1313

1414
for (const value in author) {
15-
console.log(value);
15+
console.log(author[value]);
1616
}

Sprint-2/debug/recipe.js

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

1313
console.log(`${recipe.title} serves ${recipe.serves}
1414
ingredients:
15-
${recipe.ingredients}`);
15+
${recipe.ingredients.join("\n")}`);

0 commit comments

Comments
 (0)