Working with Strings in JavaScript - How Can You Find the Position of a Substring in a String?

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?

The challenge’s context is with strings, so while B is correct as well, C is a more appropiate answer

Hope this helped

You are right, to avoid this confusion the question will be changed soon! Thank you for reporting