javascript find last matched character in string code example Example: lastindexof js string.lastIndexOf("subString")