Skip to content

Commit 718b582

Browse files
committed
1 parent efa25c1 commit 718b582

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fundamentals.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ var favoriteFoods = [];
1616

1717
// #4: Create a `for` loop that adds each string in `foods` to `favoriteFoods`.
1818
// Type your solution immediately below this line:
19-
19+
for (let i = 0; i < foods.length; i++) {
20+
favoriteFoods.push(foods[i]);
21+
};
2022

2123

2224
// #5: Create an object literal called `instructor` that contains three key-value pairs.

0 commit comments

Comments
 (0)