You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: javascript2/week1/lesson-plan.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,14 +123,14 @@ const podcasts = [{
123
123
3. For every podast:
124
124
1. Creat an `li`
125
125
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
127
127
4. Append the `h1` to the `li`
128
128
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!
129
129
4. Append the `li` to the `ul`
130
130
131
131
### Image inserter
132
132
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.
134
134
135
135
```js
136
136
// Should append a img tag to the body with the picture from 'https://picsum.photos/536/354'
0 commit comments