Skip to content

Commit 7cbcb08

Browse files
committed
Updates made to arrays.js instructions
1 parent 5d0f761 commit 7cbcb08

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

assignments/arrays.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,26 +61,32 @@ let inventory = [{"id":1,"car_make":"Lincoln","car_model":"Navigator","car_year"
6161
// arr[i]; // 1,2,3,4
6262
// }
6363

64-
//========= The dealer can't recall the information for a car with an id of 33 on his lot. Help the dealer find out which car that is by logging the car's year, make, and model in the console.
64+
// ==== Challenge 1 ====
65+
// The dealer can't recall the information for a car with an id of 33 on his lot. Help the dealer find out which car that is by logging the car's year, make, and model in the console.
6566
console.log();
6667

67-
//========= The dealer needs the information on the last car in their inventory. What is the make and model of the last car in the inventory? Log the make and model into the console.
68+
// ==== Challenge 2 ====
69+
// The dealer needs the information on the last car in their inventory. What is the make and model of the last car in the inventory? Log the make and model into the console.
6870
let lastCar = 0;
6971
console.log();
7072

71-
//========= The marketing team wants the car models listed alphabetically on the website. Sort all the car model names into alphabetical order and log the results in the console
73+
// ==== Challenge 3 ====
74+
// The marketing team wants the car models listed alphabetically on the website. Sort all the car model names into alphabetical order and log the results in the console
7275
let carModels = [];
7376
console.log();
7477

75-
//========= The accounting team needs all the years from every car on the lot. Create a new array from the dealer data containing only the car years and log the result in the console.
78+
// ==== Challenge 4 ====
79+
// The accounting team needs all the years from every car on the lot. Create a new array from the dealer data containing only the car years and log the result in the console.
7680
let carYears = [];
7781
console.log();
7882

79-
//========= 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.
83+
// ==== Challenge 5 ====
84+
// 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.
8085
let oldCars =[];
8186
console.log();
8287

83-
//========= 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.
88+
// ==== Challenge 6 ====
89+
// 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.
8490
let BMWAndAudi =[];
8591
console.log();
8692

0 commit comments

Comments
 (0)