Why doesn't my nested loop work? [typo]

My code is below. For some reason it only runs once and the output is ‘Ann’, rather than ‘Ann, James’.
Can someone help?

let bobsFollowers = [‘Ann’, ‘James’, ‘Emma’, ‘Ada’];
let tinasFollowers = [‘Ann’, ‘James’, ‘Tim’];
let mutualFollowers = ;

for (let i = 0; i < bobsFollowers.length; i++) {
for (let j = 0; j < tinasFollowers.length; i++) {
if (bobsFollowers[i] === tinasFollowers[j]) {

See anything amiss? Check the variable increment.

1 Like

thank you for the quick response! fixed it now :slight_smile:

just out of curiosity, if my variable increment was wrong, why was Ann still being logged?

Because it just happened to be at the front of the list.