Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Read the Last Item

The last index is always one less than an array's length.

Your task

Use languages.length to read the final value without writing index 2. Display Last: JavaScript.

Hint

The final position changes if the array grows.