Ask coding questions

← Back to all posts
Assignment 11, 2, Help
JoyNba (0)

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.

I'm totally blown by this and I feel like I'm confused by the verbiage of the question, any clues, don't need the answer?

Answered by ash15khng (504) [earned 5 cycles]
View Answer
ash15khng (504)

Just create a variable animalName, then do something like animalName = animal.latinName? animal.latinName is usually how you access stuff in objects, but we need to know the language to help you out.

JoyNba (0)

@ash15khng Thank you I appreciate it!

ash15khng (504)

@JoyNba Would you mind marking this as the answer if this helped? Thanks!

vedprad1 (835)

This question says that you have an object animal. This object has a property called latinName. All you have to do is make a variable called animalName and set it equal to latinName. Then, return animalName.

If you need more help on this, could you tell what language this is in?

If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!

JoyNba (0)

@vedprad1 Thank you so much for the clarification!