Assignment 11; Intro to objects
Paultheriault (0)

//Having trouble reassigning the value of the userObject phoneNumber. How does one write a replacement in a single variable function?
Any tips would be greatly appreciated.
//
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
const phoneNumber = ['userObject'];
userObject[0] = "(951)867-5309";
console.log(userObject);
}
exerciseThree();

You are viewing a single comment. View All
Answered by vedprad1 (709) [earned 5 cycles]
View Answer
Paultheriault (0)

@vedprad1 Thank you. Needed to take a break as I was getting extremely mixed up.