Conversation
ielvisd
reviewed
Jan 18, 2019
| // 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(`Car 33 is a *car year goes here* *car make goes here* *car model goes here*` ); | ||
| console.log(`Car 33 is a ${inventory[32].car_year} ${inventory[32].car_make} ${inventory[32].car_model}`) |
Collaborator
There was a problem hiding this comment.
Nice use of a template string literal
ielvisd
reviewed
Jan 18, 2019
| } | ||
| console.log(oldCars.length); | ||
|
|
||
| // ==== Challenge 6 ==== |
Collaborator
There was a problem hiding this comment.
One way you might do this would be to use a for loop to populate a new array with only the cars specified.
ielvisd
requested changes
Jan 18, 2019
Collaborator
ielvisd
left a comment
There was a problem hiding this comment.
Nice start, not going to merge just yet since there's some small corrections you could make to hit all the MVP objectives.
| "id": 3, | ||
| "email": "kmummery2@wikimedia.org", | ||
| "name": "Keven", | ||
| "gender": "M" |
Collaborator
There was a problem hiding this comment.
put a comma , after gender to be able to access your speak method. You can then finish it with a string template literal to call it down below and use a similar method for the multiply nums functions.
Kind of like this Hello my name is ${this.name}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
just a test repo