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',
}
stuck on this please help
Just return aboutMe
.
@ash15khng : That's not all. The code has to be in the function, and there should be no last comma at the end of the object.
@vedprad1 Ah, I missed that. About the comma, it may just be because of copy and paste tho.
@ash15khng : Could you mark my answer at the top as correct? Thanks!
add the return statement
@mwilki7 : That's not all. The code has to be in the function, and there should be no last comma at the end of the object.
Three simple mistakes.
return aboutMe;
. Add it.The final product:
If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!