let iceCreamFlavors = ["Chocolate", "Strawberry", "Vanilla", "Pistachio", "Rocky Road"];
```
The array values are assigned a unique value called the **index**, a whole number that is assigned based on its distance from the beginning of the array. In the example above, the string value "Chocolate" has an index of 0, and the index of "Rocky Road" is 4. Use the index with square brackets to retrieve, change, or insert array values.
@ -71,10 +75,10 @@ The `for` loop requires 3 parts to iterate:
- `iteration-expression` Runs at the end of each iteration, typically used to change the counter value
```javascript
//Counting up to 10
for (let i = 0; i <10;i++){
//Counting up to 10
for (let i = 0; i <10;i++){
console.log(i);
}
}
```
✅ Run this code in a browser console. What happens when you make small changes to the counter, condition, or iteration expression? Can you make it run backwards, creating a countdown?