I want to store the common strings from bobsFollower array and tinasFollower array in mutualFollowers array.
const bobsFollowers = ['vinit','vidyesh','bipin','shobhana'];
const tinasFollowers = ['vinit','vidyesh','manish'];
const mutualFollowers = [];
for (let i = 0; i < bobsFollowers.length; i++){
for (let j = 0; j < tinasFollowers.lenght; j++){
if (bobsFollowers[i] === tinasFollowers[j]){
mutualFollowers.push(tinasFollowers[j]);
}
}
};
console.log(mutualFollowers);
inner for loop in not getting executed
tinasFollowers.lenghtsupposed to be.length?