Repository navigation
Conversation
| volume (width, height) { | ||
| return length * width * height; | ||
| } | ||
|
|
There was a problem hiding this comment.
you had this area correct as we had our 1 on 1, can you push up the changes so i can merge. you had these without the parameters and with the this.length type syntax in the return
|
|
||
| return `Hello ${firstName} ${lastName}, nice to meet you!`; | ||
|
|
||
| } |
There was a problem hiding this comment.
good use of the template string here
|
|
||
| let fullNames = zooAnimals.forEach(function(i){ | ||
| animalNames.push(i.animal_name + " " + i.scientific_name); | ||
| }); |
There was a problem hiding this comment.
you could use a template string here to and not have to add in the extra space between the animal name and the scientific name
| const largerPopulation = []; | ||
|
|
||
| let largerPopulation = zooAnimals.filter((species) => { | ||
| return species.population === "5"; |
There was a problem hiding this comment.
when you have only one parameter in the arrow function you can omit the ( ) around it like so... zooAnimals.filter( species => { return species.population === "5" }
|
|
||
| surfaceArea(width, height) { | ||
| return (length * width + length * height + width * height); | ||
| } |
There was a problem hiding this comment.
dont forget the 2 * ( ) in front of the return to get the area correctly here
wcolts2000
left a comment
There was a problem hiding this comment.
once you push up the changes in the classes to match the prototype methods with the parameters is can merge this into the master branch for you
…ctions.js