JS Assignment 11: Intro to Objects
Paultheriault (2)

//This one has got me stumped. Any hints or advice would be greatly appreciated.//

function exerciseTwo(animal){
// Exercise Two: In this exercise you will be given an object called 'animal'
// Create a new variable called 'animalName'
// Accessing the animal object, assign the 'animalName' variable to the 'latinName' key on the object.
// return the animalName variable.

}

You are viewing a single comment. View All
Answered by heyitsmarcus (287) [earned 5 cycles]
View Answer
Paultheriault (2)

@heyitsmarcus Still struggling with this one for some reason.
function exerciseTwo(animal){
// Exercise Two: In this exercise you will be given an object called 'animal'
// Create a new variable called 'animalName'
// Accessing the animal object, assign the 'animalName' variable to the 'latinName' key on the object.
// return the animalName variable.
let animalName = {animal:latinName
};
animalName: 'latinName';{animalName}
}
I remember taking notes on object properties, but I have been manipulating this code for hours and now it just looks like gobbly-gook to me.