get last index indexOf code example Example: lastindexof javascript string.lastIndexOf(searchValue[, fromIndex])