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
1
vedprad1 (470)

@QuinzaeBeard : You said return animalName()! With parentheses! But it is a variable, not a function. There should be no parentheses.

If this is right, select the first post as correct. It would be greatly appreciated.