Skip to content

Commit

Permalink
Merge branch 'main' into wiki-example-urls
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth authored Nov 9, 2023
2 parents 82f0084 + 8cc3288 commit c0c6d13
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions live-examples/js-examples/string/string-indexof.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ 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(
searchTerm,
indexOfFirst + 1,
)}`,
);
// Expected output: "The index of the second "dog" is 41"
// Expected output: "The index of the second "dog" is 38"
58 changes: 29 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@babel/eslint-parser": "^7.22.15",
"@mdn/bob": "^3.5.0",
"chokidar-cli": "^3.0.0",
"eslint": "^8.52.0",
"eslint": "^8.53.0",
"http-server": "^14.1.1",
"husky": "^8.0.3",
"lint-staged": "^15.0.2",
Expand Down

0 comments on commit c0c6d13

Please sign in to comment.