Nestled Loop not working

I completed the JS Nested Loop Challenge but the loop isn’t working. It keeps outputting the name ‘Joe’ twice, when it should be outputting the names ‘Billy’ and ‘Romeo’.

const bobsFollowers = [‘Billy’, ‘Joe’, ‘Hamlet’, ‘Romeo’];
const tinasFollowers = [‘Billy’, ‘Theresa’, ‘Romeo’];
const mutualFollowers = ;

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

logs : [‘Joe’ , 'Joe]

Just a simple unfortunate typo that’s all! You’ve accidentally put 1 instead of i in the push back, and so whenever the condition is true it’s pushing back the 1st index element in bobsFollowers, which is ‘Joe’.

To help debug your loop, try putting a console.log statement after this command.

You’ll be able to see what is in the array while it is looping.