Hi I was wondering how I could get bobs and tina same followers into an empty array mutualfollowers. I am getting output Both followers have undefined. Seem like the name is not passing through. Please advise.
let bobsFollowers = ['grey', 'mary', 'james', 'ash'];
let tinasFollowers = ['grey', 'mary', 'rex'];
let mutualFollowers = [];
for(let i = 0; i<bobsFollowers.length; i++){
for(let k = 0; k<tinasFollowers.length; k++){
if (bobsFollowers[i] === tinasFollowers[k]) {
tinasFollowers.push(mutualFollowers);
console.log('Both followers have ' + mutualFollowers[k]);
}
}
}