array-7

let arr = [1, 2, "test", "bob", false, 33];

//we can update first element
arr[0] = 0;
console.log(arr);
//Output: [0, 2, "test", "bob", false, 33];

//We can update third element
arr[2] = "not a test";
console.log(arr);
//Output: [1, 2, "not a test", "bob", false, 33];

//Or we can update last element
arr[arr.length-1] = 50;
console.log(arr);
//Output: [1, 2, "test", "bob", false, 50]