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 4241897
Browse filesBrowse the repository at this point in the historyBrowse files
Sascha
committed
added in a different solution appraoch to the parent objects.
Copy file name to clipboardExpand all lines: assignments/arrays.js
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -99,10 +99,14 @@ console.log(oldCars);
99
99
100
100
// ==== Challenge 6 ====
101
101
// A buyer is interested in seeing only BMW and Audi cars within the inventory. Return an array that only contains BMW and Audi cars. Once you have populated the BMWAndAudi array, use JSON.stringify() to show the results of the array in the console.
102
-
letBMWAndAudi=[];
102
+
103
+
/* let BMWAndAudi = [];
103
104
for (let i = 0; i < inventory.length; i++) {
104
105
if (inventory[i].car_make === "BMW" || inventory[i].car_make === "Audi" ){
0 commit comments