I think there is an issue in this MCQ. (in javascript String Quiz)


The question asks which indexOf() example returns -1, but all given options search for characters that exist in "freeCodeCamp".
Therefore, none of the answers should return -1.
The correct answer should include a character not present in the string (for example "z").

Do you see c in string freeCodeCamp?

Try organization.indexOf(“c”) once.

Welcome to the forum @ahmedakhtar624,

Remember that JavaScript is case sensitive. Is there a lower-case 'c" in ‘freeCodeCamp’?

String.prototype.indexOf() - JavaScript | MDN

Happy coding