to get the last index of rom a particular position string js code example Example: lastindexof js string.lastIndexOf("subString")