let arr = [1, 2, "test", "bob", false, 33]; //Get first element console.log(arr[0]); //Output: 1 //Get third element console.log(arr[2]); //Output: "test" //Get last element console.log(arr[arr.length-1]); //Output: 33
let arr = [1, 2, "test", "bob", false, 33]; //Get first element console.log(arr[0]); //Output: 1 //Get third element console.log(arr[2]); //Output: "test" //Get last element console.log(arr[arr.length-1]); //Output: 33