Ask coding questions

← Back to all posts
?? help???
faziz6006 (2)

java script

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'

}

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.
}

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
}

Answered by vedprad1 (694) [earned 5 cycles]
View Answer
Commentshotnewtop
vedprad1 (694)

I don't know if I should really be helping you directly, but I guess the opnly way to learn is by examples.

function exerciseOne(){
var aboutMe = {
name: 'John Doe',
city: 'New York City',
favoriteAnimal: 'tiger'
}
return aboutMe;
}

function exerciseTwo(animal){
var animalName;
animalName = animal.latinName;
return animalName;
}

function exerciseThree(userObject){
userObject.phoneNumber = '(951)867-5309';
return userObject;
}

I think it would be best if you instead learn from resources like w3schools.com instead of asking for help here. Please use those resources, because they are free and will actually help you learn.

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

heyitsmarcus (282)

@vedprad1 w3schools is an okay resource for reference, but something like FreeCodeCamp.org is much, much better overall for learning.

faziz6006 (2)

@vedprad1 thanks ad il take a look at those resources as well , i eally appreciate the help , once i finish withthese questions il be taking an actual class with a teacher and studentss so i wont bother u lolol

faziz6006 (2)

@heyitsmarcus thanks i started already, freecodecamp is awsomee!

faziz6006 (2)

@vedprad1 i didnt realize that ppl wod get mad if i posted questions on here isnt that what this is for?

theangryepicbanana (687)

please stop constantly asking for help. it will take time for someone to helpm however this looks like some sort of class assignment. if so, maybe ask the teacher to go back over some concepts?

faziz6006 (2)

@theangryepicbanana bro its online i dont have a teacher