click below
click below
Normal Size Small Size show me how
Vidcode Module 2-3
Vidcode M2-2
| Question | Answer |
|---|---|
| Let's say we had this array: var colors=["blue", "green", "orange", "purple", "red", "pink"] How would we index the array to get "purple?" | colors[3] Remember, we start counting at 0 |
| Let's say we had this array: var colors=["blue", "green", "orange", "purple", "red", "pink"] How would we index the array to get "blue?" | colors[0] Remember, we start counting at 0 |
| Let's say we had this array: var colors=["blue", "green", "orange", "purple", "red", "pink"] How would we index the array to get "pink?" | colors[5] Remember, we start counting at 0 |