Skip navigation

On September 14th, 2017, we published revised versions of our Privacy Policy, Terms of Service and Website Use Policy and published a Cookie Policy. Your continued use of means you agree to these revised documents, so please take a few minutes to read and understand them.

Use loops with arrays

Use loops with arrays: Computer Science Principles: Programming
Use loops with arrays: Computer Science Principles: Programming

LinkedIn principal author Doug Winnie explains how to loop through values within an array. Using a for loop, you can repeat through all of the elements and stop the loop based on the array’s length function that stores the number of items in the array. The for each loop goes through all of the items in the loop and uses a single variable name to refer to each element without needing to know the array length.

Resume Transcript Auto-Scroll
Skill Level Beginner
1h 25m
Show More Show Less
Skills covered in this course
Developer Programming Foundations

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now