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
Copy file name to clipboardExpand all lines: assignments/arrays.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -69,8 +69,8 @@ console.log(`Car 33 is a ${inventory[32].car_year} ${inventory[32].car_make} ${i
69
69
70
70
// ==== Challenge 2 ====
71
71
// 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.
72
-
letlastCar=0;
73
-
console.log();
72
+
letlastCar=`The last car is a ${inventory[49].car_year}${inventory[49].car_make}${inventory[49].car_model}`;
73
+
console.log(lastCar);
74
74
75
75
// ==== Challenge 3 ====
76
76
// 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
0 commit comments