Skip to content

Commit 36bf58a

Browse files
author
Sascha
committed
fixed a mistake where I did not return the count but the items of oldCars
1 parent 183b3df commit 36bf58a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assignments/arrays.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ for (let i = 0; i < inventory.length; i++) {
100100
inventory[i].car_year < 2000 ? oldCars.push(inventory[i].car_year) : null;
101101
}
102102

103-
console.log(oldCars);
103+
console.log(oldCars.length);
104104

105105
// ==== Challenge 6 ====
106106
// 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.

0 commit comments

Comments
 (0)