From e7f43df0eb550b8e421d402a6adb66dbf46af810 Mon Sep 17 00:00:00 2001 From: Anna Date: Sun, 8 Dec 2024 00:29:28 -0500 Subject: [PATCH] chore(curriculum): make step 14 cat photo app clearer (#57437) --- .../671141feba228a35cefba82d.md | 8 +++++++- .../workshop-cat-photo-app/671141feba228a35cefba82d.md | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/671141feba228a35cefba82d.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/671141feba228a35cefba82d.md index 168e70033c9..7bf1c36dea8 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/671141feba228a35cefba82d.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/671141feba228a35cefba82d.md @@ -7,7 +7,7 @@ dashedName: step-14 # --description-- -Turn the text `cute cats` into an anchor elements that links to `https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg`. +Turn the existing text `cute cats` into an anchor elements that links to `https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg`. # --hints-- @@ -29,6 +29,12 @@ The `href` attribute of the new anchor element should be `https://cdn.freecodeca assert.strictEqual(document.querySelector('a')?.href, "https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg"); ``` +There should only be one instance of the phrase `cute cats` in your code. + +```js +assert.strictEqual(code.indexOf("cute cats"),code.lastIndexOf("cute cats")); +``` + The text of the `p` element should still be `Everyone loves cute cats online!`. ```js diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-photo-app/671141feba228a35cefba82d.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-photo-app/671141feba228a35cefba82d.md index 168e70033c9..7bf1c36dea8 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-photo-app/671141feba228a35cefba82d.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-photo-app/671141feba228a35cefba82d.md @@ -7,7 +7,7 @@ dashedName: step-14 # --description-- -Turn the text `cute cats` into an anchor elements that links to `https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg`. +Turn the existing text `cute cats` into an anchor elements that links to `https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg`. # --hints-- @@ -29,6 +29,12 @@ The `href` attribute of the new anchor element should be `https://cdn.freecodeca assert.strictEqual(document.querySelector('a')?.href, "https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg"); ``` +There should only be one instance of the phrase `cute cats` in your code. + +```js +assert.strictEqual(code.indexOf("cute cats"),code.lastIndexOf("cute cats")); +``` + The text of the `p` element should still be `Everyone loves cute cats online!`. ```js