Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c7d7e7

Browse files
committed
Update lesson text
1 parent 9e623f1 commit 2c7d7e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript2/week1/lesson-plan.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ const podcasts = [{
123123
3. For every podast:
124124
1. Creat an `li`
125125
2. Create an `h1` element
126-
3. Change the innerHTML of hte `h1` to equal the name of the current podcast
126+
3. Change the innerHTML of the `h1` to equal the name of the current podcast
127127
4. Append the `h1` to the `li`
128128
5. Now add an image to the `li` with the `src` set to the `imageUrl`. But only if the `imageUrl` key exists on the object!
129129
4. Append the `li` to the `ul`
130130

131131
### Image inserter
132132

133-
Create a function that has two parameters: `imageUrl` and `elementToAppendImageTo`. The function should create a img tag using the `imageUrl` parameter. The function should then append the `img` to the `elementToAppendImageTo` - html element.
133+
Create a function that has two parameters: `imageUrl` and `elementToAppendImageTo`. The function should create an img tag and set the `src` attribute of the img to the `imageUrl` parameter. The function should then append the `img` to the `elementToAppendImageTo` - html element.
134134

135135
```js
136136
// Should append a img tag to the body with the picture from 'https://picsum.photos/536/354'

0 commit comments

Comments
 (0)