Multiple choice technology programming languages

Which operator can be used to access the first item in an array?

  1. shift

  2. start

  3. right$
  4. left$
Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The shift operator removes and returns the first element from an array, shifting all remaining elements down by one position. This is the standard way to access the first item while removing it from the array.