Nested loops

I need help with my code.I need to get mutual friends of bob and time, when I run the code, the result is
Where am I going wrong? Please help

By result, you mean that undefined is logged to the console? Try adding console.log(mutualFollowers); to the very end of your code, to see the entire mutualFollowers array. Then consider why mutualFollowers[j] would be undefined inside your loops.


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.