Get array elements from index to end javascript code example Example: javascript get last element in an array var last = arr[arr.length - 1]