The notion of constant time means that the operation will always complete in one compute cycle no matter how large the data structure grows to be.
const array = [1,2,3,4,5]
const theLastElemenet = array[array.length - 1] // O(1)
const hashMap = {hello: "world"}