Skip to content

Comments

Cam Perry - JavaScript I#1

Open
cpscott1 wants to merge 4 commits intomasterfrom
cam-perry
Open

Cam Perry - JavaScript I#1
cpscott1 wants to merge 4 commits intomasterfrom
cam-perry

Conversation

@cpscott1
Copy link
Owner

just a test repo

@cpscott1 cpscott1 requested a review from ielvisd January 16, 2019 05:15
@cpscott1 cpscott1 changed the title test repo Cam Perry - JavaScript I Jan 16, 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}`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of a template string literal

}
console.log(oldCars.length);

// ==== Challenge 6 ====
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One way you might do this would be to use a for loop to populate a new array with only the cars specified.

Copy link
Collaborator

@ielvisd ielvisd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants