xxxxxxxxxx
const array = [1,2,3,'Hello']
//Return the last element based on the length
let last_element = array[array.length - 1]
//Return only last element ( it will be removed from the array )
let pop_element = array.pop()
//Returns the item at that index, allowing for positive and negative integers.
//Negative integers count back from the last item in the array
let element_at_index = array.at(-1)