Skip to content

Commit 626b022

Browse files
challenge 5: array.js corrected comparision operator
1 parent 5927b5b commit 626b022

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎assignments/arrays.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ console.log(carYears);
9292
// The car lot manager needs to find out how many cars are older than the year 2000. Using the carYears array you just created, find out how many cars were made before the year 2000 by populating the array oldCars and logging it's length.
9393
let oldCars =[];
9494
carYears.forEach(function(element){
95-
if(element > 2000){
95+
if(element < 2000){
9696
oldCars.push(`${element}`);
9797
}
9898
});

0 commit comments

Comments
 (0)