Skip to content

Commit b52d229

Browse files
committed
create and append image element with placeholder image
1 parent 4f6828f commit b52d229

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Sprint-3/reading-list/script.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ const ulListEl = document.getElementById("reading-list");
2828
const li = document.createElement("li");
2929
ulListEl.appendChild(li);
3030
li.textContent ="placeholder text";
31-
31+
const img = document.createElement('img');
32+
li.appendChild(img)
33+
img.src = "https://blackwells.co.uk/jacket/l/9780135957059.jpg";
3234

3335
}
3436
readingList(books);

0 commit comments

Comments
 (0)