The last index is always one less than an array's length.
Use languages.length to read the final value without writing index 2. Display Last: JavaScript.
languages.length
2
Last: JavaScript
The final position changes if the array grows.