Repository navigation
Anna townsend - #1
AnnaTownsend9916 wants to merge 3 commits into
Conversation
… figure out some small things for each assignment so thats where i am so far.
jheinz1999
left a comment
There was a problem hiding this comment.
You're on the cusp for these first two files! Take note of the feedback I provided and keep working hard. You can do it!
| // Using your dinosaur objects, log answers to these questions: | ||
|
|
||
|
|
||
| const tyrannosaurus = { |
There was a problem hiding this comment.
Excellent work defining your objects!
| console.log(tyrannosaurus.period); | ||
|
|
||
|
|
||
| // Create a new roar method for the tyrannosaurus. When called, return "RAWERSRARARWERSARARARRRR!" Log the result. |
There was a problem hiding this comment.
Be sure to add the roar method. Refer to past projects if you're stuck, and if you still can't figure it out, reach out to me!
| const animalNames = []; | ||
| console.log(animalNames); | ||
| let names = zooAnimals.forEach(function(i){ | ||
| zooAnimals.push(i.scientific_name + i.animal_name); |
There was a problem hiding this comment.
I don't think that you will want to push this information into the zooAnimals array. Look around and see if there is another array that has been defined that would be a better place to put these names.
| */ | ||
|
|
||
| const lowerCase = []; | ||
| const lowerCase = animalNames.map((zooAnimal) => { |
| const largerPopulation = []; | ||
| console.log(largerPopulation); | ||
| // const largerPopulation = zooAnimals.filter((pop) => { | ||
| // return pop.zooAnimals === 5; |
There was a problem hiding this comment.
Do each of your objects in the zooAnimals array have a property called zooAnimals? Also, right now you are checking if that is equal to five, while it asks for the animals with a population less than five.
| console.log(populationTotal); | ||
| // */ | ||
| // const populationTotal = zooAnimals.reduce(zooAnimals, pop) => { | ||
| // return zooAnimals + pop.zooAnimals; |
There was a problem hiding this comment.
Very very close here! This is the same issue with the last problem - does each element in your array have a zooAnimals property? If not, what property does it have that would work here?
| Create a constructor function named CuboidMaker that accepts properties for length, width, and height | ||
| */ | ||
|
|
||
| function CuboidMaker(props) { |
| */ | ||
|
|
||
| CuboidMaker.prototype.volume = function() { | ||
| return volume; |
There was a problem hiding this comment.
Volume is not defined here - this function should calculate the volume based on the formula given above.
No description provided.