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 246d974
Browse filesBrowse the repository at this point in the historyBrowse files
//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
-
11
3
// This program should log out the title, how many it serves and the ingredients.
0 commit comments