Multiple LED's using an Array

You already did it on the pinMode part. How did you figure it out there and not for the digitalWrite part?