JS Assignment 11: Intro to Objects
Paultheriault (3)

//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
jjaime12 (1)

@heyitsmarcus function exerciseOne(){}
// Exercise One: In this exercise you will create a variable called 'aboutMe'
// This variable should be assigned a new object
// In this object create three key:value pairs
// The keys should be: 'name', 'city', 'favoriteAnimal'
// The values should be strings associated with the keys.
// return the variable 'aboutMe'
const aboutMe = {
name: 'jose',

city: 'bell gardens',

favoriteAnimal: 'lion',