JavaScript function below does not use the second parameter to update the object.
var user11553 = {username:"JStudent01"};
var instagram = "JMann22";
var twitter = "JohnM22";
var updateSocialMedia= (obj,str,str2) => {
obj.str=str2;
};
updateSocialMedia(user11553,'instagramID',instagram);
The output I am getting is { username: 'JStudent01', str: 'JMann22' }
which has added a new key value pair and used the str2 argument but not the str agrgument.