1
JS Assignment 11 #2
QuinzaeBeard (0)

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.
animal.latinName= animalName;
return animalName();
}

You are viewing a single comment. View All
Answered by vedprad1 (435) [earned 5 cycles]
View Answer
1
vedprad1 (435)

You're so close! You accidentally switched animal.latinName and animalName.
Line 6 should be animalName = animal.latinName.

If this answer is correct, please check the checkmark on the left side of this message. Thanks and Good Luck!

1
QuinzaeBeard (0)

@vedprad1 That was actually my first answer, but I kept receiving error messages