Section 1 - Instruction

Previously, you've learned how to create arrays, access items using their index positions, and change existing items in arrays.

Let's practice combining these fundamental array operations to strengthen your skills!

Engagement Message

Ready to test your array mastery?

Section 2 - Practice

Type

Fill In The Blanks

Markdown With Blanks

Create an array of three favorite foods (pizza, tacos, and ice cream in that order), then access and print the second item:

Suggested Answers

  • "pizza"
  • "tacos"
  • "ice cream"
  • 1
Section 3 - Practice

Type

Swipe Left or Right

Practice Question

Match each operation with what it does by swiping left or right:

Labels

  • Left Label: Accessing Items
  • Right Label: Changing Items

Left Label Items

  • myArray[0]
  • colors[2]
  • scores[1]
  • names[3]

Right Label Items

  • myArray[0] = "new value"
  • colors[2] = "purple"
  • scores[1] = 95
  • names[3] = "Alice"
Section 4 - Practice
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal