Arrays

Creating arrays

Accessing array items

Adding and removing array items

Converting between array and string

Array destructing


Exercises

  1. Define an array with four of your favorite books or characters. Write an expression to get the 2nd element of the array.
  2. Define an array with five numbers. Write expressions to return the 1st and the last elements of the array.
Sample solutions