Array elements can be changed:
let arr = ['a', 'b', 'c'];
arr[0] = '!';
console.log(arr); // shows ['!', 'b', 'c']
Create an array with the elements 'a'
,
'b'
, 'c'
. Write the number 1
instead of the first element, 2
instead of the second, 3
instead of the third.