how to get my array from index 1 to the last index using javascript code example Example: last index of array js array.lastIndexOf(searchElement[, fromIndex]);