js find the the last occurence of character in string code example Example: lastindexof js string.lastIndexOf("subString")