Skip to content

Commit d7603a8

Browse files
committed
complete arrays.js challenge 2
1 parent cfa7c9d commit d7603a8

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
@@ -83,7 +83,7 @@ console.log(`Car ${inventory[32].id} is a ${inventory[32].car_make} ${inventory[
8383
// ==== Challenge 2 ====
8484
// 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.
8585
let lastCar = 0;
86-
console.log();
86+
console.log(inventory[inventory.length - 1]);
8787

8888
// ==== Challenge 3 ====
8989
// 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

Comments
 (0)