JS assignmnet 11: introduction to objects
janetsomehow1 (2)

https://repl.it/student/submissions/7135369
Hello everyone, i am new to javascript and i dont seem to understand what to do in this exercise. I keep getting error messages. Please help

You are viewing a single comment. View All
janetsomehow1 (2)

@TheDrone7 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'
var aboutMe = {
name:"Janet";
city:"Uyo";
favoriteAnimal:Dog,
}
return aboutMe;
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.
let animalName = {
animalName: 'latinName';
}

function exerciseThree(userObject){
// Exercise Three: In this exercise you will be given an object called 'userObject'
// The phonne number for this user is incorrect!
// reassign the 'phoneNumber' key to the value: '(951)867-5309'
// return the userObject
}