Tell us what’s happening:
Am I missing something, or is there an issue with the following concept check question?
The official correct answer is (C), but isn’t (B) correct as well?
According to MDN:
String.prototype.indexOf()
Array.prototype.indexOf()
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Challenge Information:
Working with Strings in JavaScript - How Can You Find the Position of a Substring in a String?