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' } let aboutMe = []; let about ={ name:'Stef', city:'LA', favouriteAnimal:'Bunny', }; console.log(about);
Hi everyone,
I am not sure what to do in ex:1 and specifically this line "This variable should be assigned a new object".
https://repl.it/student/submissions/6959613
@Vandesm14
Would that help?
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'
}
let aboutMe = [];
let about ={
name:'Stef',
city:'LA',
favouriteAnimal:'Bunny',
};
console.log(about);