The function lastIndexOf() is used to ___________________
(a) Get the index of last occurrence of specified character in argument
(b) Get the index of first occurrence of specified character in argument
(c) Get the index of last occurrence of first character in string
(d) Get the index of last occurrence of last character of string
This question was addressed to me by my school teacher while I was bunking the class.
This question is from String Class topic in portion Inbuilt Classes of Object Oriented Programming