Repository navigation
Juan mateus - #1
animevirus wants to merge 2 commits into
Conversation
| // 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 has an id of 33 by logging the car's year, make, and model in the console log provided to you below: | ||
| console.log(`Car 33 is a *car year goes here* *car make goes here* *car model goes here*` ); | ||
|
|
||
| console.log(inventory[32]) |
There was a problem hiding this comment.
Instead of logging the object, please log the car's year, make, and model as in the example above.
|
|
||
|
|
||
| console.log(inventory[49].car_model) | ||
| console.log(inventory[49].car_make) |
There was a problem hiding this comment.
Array[array.length - 1] is another way of accessing the last element of an array.
| carModels.push(inventory[i].car_model) ; | ||
|
|
||
| } | ||
| console.log(carModels) |
There was a problem hiding this comment.
Please sort all the car model names into alphabetical order and log the results in the console.
| // ==== Challenge 3 ==== | ||
| // 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 | ||
| let carModels = []; | ||
| console.log(); |
There was a problem hiding this comment.
Please remove all console.logs that are not needed.
|
|
||
| // ==== Challenge 5 ==== | ||
| // 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. | ||
| let oldCars = []; |
There was a problem hiding this comment.
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.
|
|
||
| // ==== Challenge 5 ==== | ||
| // 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. | ||
| let oldCars = []; |
There was a problem hiding this comment.
Challenge 6
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.
| let anotherFunction = (param) => { | ||
| return param; | ||
| }; | ||
| anotherFunction("Example"); |
There was a problem hiding this comment.
Please remember to console.log your functions to test the results you intended.
| let add = (param1, param2) => { | ||
| return param1 + param2; | ||
| }; | ||
| add(1,2); |
There was a problem hiding this comment.
Please remember to console.log your functions to test the results you intended.
| let subtract = (param1, param2) => { | ||
| return param1 - param2; | ||
| }; | ||
| subtract(1,2); |
There was a problem hiding this comment.
Please remember to console.log your functions to test the results you intended.
| // Give Kennan the ability to say "Hello, my name is Kennan!" Use the console.log provided as a hint. | ||
| // console.log(kennan.speak()); | ||
| // console.log(kennan.speak()); | ||
| done |
There was a problem hiding this comment.
Please remember to remove all variables that are not used or comment lines that are used for personal notes.
| // console.log(kennan.speak()); | ||
| done | ||
|
|
||
| // Antonietta loves math, give her the ability to multiply two numbers together and return the product. Use the console.log provided as a hint. |
There was a problem hiding this comment.
Please complete Challenge 3 and 4 in your objects.js file.
| // ==== Challenge 3: Object Methods ==== | ||
| // Give Kennan the ability to say "Hello, my name is Kennan!" Use the console.log provided as a hint. | ||
| // console.log(kennan.speak()); | ||
| // console.log(kennan.speak()); |
There was a problem hiding this comment.
In order to complete this challenge, you will have to rename your past objects.
ghost
left a comment
There was a problem hiding this comment.
Requested Improvements
Please note all comments I have made in your code. Also, please remember to complete all MVP goals.
Questions
If you have any questions over this assignment, feel free to ask them during our standup meeting.
Rating: {1-3}
1
No description provided.