Question for Nested Loops


So, I was doing some practice on codeacademy and came across this nested loop example. I am supposed to push the the followers that they have in common into the “mutualFollowers” variable, but I can’t seem to figure it out. Here is the code:

While the code “works” I know that I didn’t use the “mutualFollowers” variable is driving me crazy.

Please help! Thank you!


you should .push() the elements into the array, but its true that its not used. It at least gives you the mutual flowers, which could be useful later when expanding the program


Awesome! Thanks for your help! I really appreciate it!