Which of the following is a JavaScript string method for finding the index of a specified character in a string?
A. indexOf()
B. charAt()
C. slice()
D. None of the above
Answer:A
Which of the following is a JavaScript string method for finding the index of a specified character in a string?
A. indexOf() B. charAt() C. slice() D. None of the above