Execute the for loop three times by specifying that i needs to be less than friends.length.

Double-check that the condition is i < friends.length.