Array length in JavaScript

The length of an array is found using the property length:

javascriptlet arr = ['a', 'b', 'c'];
console.log(arr.length) // shows 3

If you know the length of an array, you can get its last element:

javascriptlet arr = ['a', 'b', 'c'];
console.log(arr[arr.length - 1]) // shows 'c'
Задание 1

Create an array with arbitrary elements. Display on the screen the number of elements in this array.

Задание 2

Create an array with arbitrary elements. Display the last element of this array.