You've learned how to create arrays, access items by index, and modify their contents. Let's practice combining these core array skills together.
Engagement Message
Ready to show what you know about working with arrays?
Type
Fill In The Blanks
Markdown With Blanks
Let's work with a shopping list. Fill in the blanks to create an array, access the second item, and change it to something else.
Suggested Answers
- "bread"
- 1
- 2
- 0
- 1
Type
Multiple Choice
Practice Question
Which of these statements about JavaScript arrays is correct?
A. Arrays can only hold one type of data at a time B. Array indexing starts at 1 for the first item C. You can change items in an array after it's created D. Empty arrays cannot be created in JavaScript
Suggested Answers
- A
- B
- C - Correct
- D
Type
Sort Into Boxes
Practice Question
Sort these array operations into the correct boxes:
Labels
- First Box Label: Reading Data
- Second Box Label: Changing Data
First Box Items
- scores[0]
- colors[1]
Second Box Items
