const bobsFollowers = ['Tim', 'Kim', 'Lim', 'Nim'];
const tinasFollowers = ['Kim', 'Nim', 'Hue'];
const mutualFollowers = [];
for (let i = 0; i < bobsFollowers.length; i++) {
for (let j = 0; j < tinasFollowers.length; j++) {
if (bobsFollowers[i] === tinasFollowers[j]) {
console.log(mutualFollowers.push(bobsFollowers[i]));
}
}
}
const bobsFollowers = ['Tim', 'Kim', 'Lim', 'Nim'];
const tinasFollowers = ['Kim', 'Nim', 'Hue'];
const mutualFollowers = [];
for (let i = 0; i < bobsFollowers.length; i++) {
for (let j = 0; j < tinasFollowers.length; j++) {
if (bobsFollowers[i] === tinasFollowers[j]) {
console.log(mutualFollowers.push(bobsFollowers[i]));
}
}
}