write a JavaScript function that takes four arguments: an array, a number to be searched in the given array, starting index of the given array, the last index of the given array code example
Example: last index of array js
array.lastIndexOf(searchElement[, fromIndex]);