array get range code example Example: js array get range const array = ['a','b','c','d'] const sliced = array.slice(0, 3) // ["a", "b", "c"]