mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): Inconsistent uses of "a" and "an" (#54915)
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ Here is an example of an `img` element with a `src` attribute pointing to the fr
|
||||
<img src="https://cdn.freecodecamp.org/platform/universal/fcc_secondary.svg">
|
||||
```
|
||||
|
||||
Inside the existing `img` element, add an `src` attribute with this URL:
|
||||
Inside the existing `img` element, add a `src` attribute with this URL:
|
||||
|
||||
`https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg`
|
||||
|
||||
@@ -27,7 +27,7 @@ Your code should have an `img` element. You may have removed the `img` element o
|
||||
assert(document.querySelector('img'));
|
||||
```
|
||||
|
||||
Your `img` element should have an `src` attribute. You have either omitted the attribute or have a typo. Make sure there is a space between the element name and the attribute name.
|
||||
Your `img` element should have a `src` attribute. You have either omitted the attribute or have a typo. Make sure there is a space between the element name and the attribute name.
|
||||
|
||||
```js
|
||||
assert(document.querySelector('img').src);
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ Turn the image into a link by surrounding it with necessary element tags. Use `h
|
||||
|
||||
# --hints--
|
||||
|
||||
You should have an `img` element with an `src` value of `https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg`. You may have accidentally deleted it.
|
||||
You should have an `img` element with a `src` value of `https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg`. You may have accidentally deleted it.
|
||||
|
||||
```js
|
||||
assert(
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@ dashedName: step-22
|
||||
|
||||
# --description--
|
||||
|
||||
After the unordered list, add a new image with an `src` attribute value set to:
|
||||
After the unordered list, add a new image with a `src` attribute value set to:
|
||||
|
||||
`https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg`
|
||||
|
||||
@@ -40,13 +40,13 @@ assert(
|
||||
);
|
||||
```
|
||||
|
||||
The new image does not have an `src` attribute. Check that there is a space after the opening tag's name and/or there are spaces before all attribute names.
|
||||
The new image does not have a `src` attribute. Check that there is a space after the opening tag's name and/or there are spaces before all attribute names.
|
||||
|
||||
```js
|
||||
assert($('section')[1].lastElementChild.hasAttribute('src'));
|
||||
```
|
||||
|
||||
The new image should have an `src` value of `https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg`. Make sure the `src` attribute's value is surrounded with quotation marks.
|
||||
The new image should have a `src` value of `https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg`. Make sure the `src` attribute's value is surrounded with quotation marks.
|
||||
|
||||
```js
|
||||
assert(
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ assert(
|
||||
);
|
||||
```
|
||||
|
||||
The third image should have an `src` attribute set to `https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg`.
|
||||
The third image should have a `src` attribute set to `https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg`.
|
||||
|
||||
```js
|
||||
const catsImg = document.querySelectorAll('figure > img')[1];
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ Your `allSongs` array should have an object with a `duration` property set to th
|
||||
assert.equal(allSongs[0].duration, "4:25");
|
||||
```
|
||||
|
||||
Your `allSongs` array should have an object with an `src` property set to the string `"https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3"`.
|
||||
Your `allSongs` array should have an object with a `src` property set to the string `"https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3"`.
|
||||
|
||||
```js
|
||||
assert.equal(allSongs[0].src, "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3");
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ The second object in your `allSongs` array should have a `duration` property set
|
||||
assert.equal(allSongs[1].duration, "4:15");
|
||||
```
|
||||
|
||||
The second object in your `allSongs` array should have an `src` property set to the string `"https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3"`.
|
||||
The second object in your `allSongs` array should have a `src` property set to the string `"https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3"`.
|
||||
|
||||
```js
|
||||
assert.equal(allSongs[1].src, "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3");
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ The third object in your `allSongs` array should have a `duration` property set
|
||||
assert.equal(allSongs[2].duration, "3:51");
|
||||
```
|
||||
|
||||
The third object in your `allSongs` array should have an `src` property set to the string `"https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3"`.
|
||||
The third object in your `allSongs` array should have a `src` property set to the string `"https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3"`.
|
||||
|
||||
```js
|
||||
assert.equal(allSongs[2].src, "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3");
|
||||
|
||||
Reference in New Issue
Block a user