mdn/interactive-examples

Expected output is wrong

MikelShael opened this issue · 2 comments

MDN URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf

What specific section or headline is this issue about?

Try it

What information was incorrect, unhelpful, or incomplete?

// Expected output: "The index of the first "dog" is 7"
// Expected output: "The index of the second "dog" is 41"

Screenshot 2023-11-06 005057

What did you expect to see?

// Expected output: "The index of the first "dog" is 15"
// Expected output: "The index of the second "dog" is 38"

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Thank you. This will be fixed by #2653

It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.