Week 6 — Arrays & Loops

← Back to Index

Using a FOR loop

0: Linkin Park
1: Coldplay
2: Imagine Dragons
3: Metallica
4: The Weeknd

Using a WHILE loop

0: Linkin Park
1: Coldplay
2: Imagine Dragons
3: Metallica
4: The Weeknd

Using a FOREACH loop

Linkin Park
Coldplay
Imagine Dragons
Metallica
The Weeknd