You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8a1272c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Sprint-2/debug/recipe.js
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
// Predict and explain first...
2
2
3
+
//The program will not display the ingredients correctly. Instead, it will show something like:
4
+
//bruschetta serves 2
5
+
//ingredients:
6
+
//[object Object]
7
+
8
+
//The issue is that `recipe` is an object. JavaScript cannot display the whole object inside a string, so it shows `[object Object]`. You need to access the specific values you want, like the ingredients array, and format them separately.
9
+
10
+
3
11
// This program should log out the title, how many it serves and the ingredients.
0 commit comments