From 9a2066179451301ff044f8798297b8c1a46b9b26 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Mon, 6 Nov 2023 19:50:59 +1100 Subject: [PATCH] string-indexof.js - comments don't match output (#2653) --- live-examples/js-examples/string/string-indexof.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/live-examples/js-examples/string/string-indexof.js b/live-examples/js-examples/string/string-indexof.js index 78c3600ba..86999ac31 100644 --- a/live-examples/js-examples/string/string-indexof.js +++ b/live-examples/js-examples/string/string-indexof.js @@ -4,7 +4,7 @@ const searchTerm = 'dog'; const indexOfFirst = paragraph.indexOf(searchTerm); console.log(`The index of the first "${searchTerm}" is ${indexOfFirst}`); -// Expected output: "The index of the first "dog" is 7" +// Expected output: "The index of the first "dog" is 15" console.log( `The index of the second "${searchTerm}" is ${paragraph.indexOf( @@ -12,4 +12,4 @@ console.log( indexOfFirst + 1, )}`, ); -// Expected output: "The index of the second "dog" is 41" +// Expected output: "The index of the second "dog" is 38"