Skip to content

Commit

Permalink
chore(curriculum): make step 14 cat photo app clearer (freeCodeCamp#5…
Browse files Browse the repository at this point in the history
  • Loading branch information
a2937 authored and pull[bot] committed Jan 22, 2025
1 parent 8926cc6 commit 050fdc3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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--

Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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--

Expand All @@ -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
Expand Down

0 comments on commit 050fdc3

Please sign in to comment.