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 89ef2fc
Browse filesBrowse the repository at this point in the historyBrowse files
// 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
87
-
letcarModels=[];
88
-
letcarModelsSorted=[];
89
-
console.log();
87
+
letcarModels=[];
88
+
89
+
for(leti=0;i<inventory.length;i++){
90
+
letcarModels=inventory[i].car_model.push;
91
+
92
+
}
93
+
94
+
letcarModelsSorted=carModels.sort();
95
+
96
+
97
+
console.log(carModelsSorted);
98
+
90
99
91
100
// ==== Challenge 4 ====
92
101
// 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.
0 commit comments