We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe3b43 commit aa36d97Copy full SHA for aa36d97
app.js
@@ -1,12 +1,9 @@
1
-const wmf = document.querySelector('#book-list li:nth-child(2) .name');
2
-console.log(wmf);
3
-
4
-var books = document.querySelector('#book-list li .name');
5
-console.log(books);
6
7
-books = document.querySelectorAll('#book-list li .name');
8
+const books = document.querySelectorAll('#book-list li .name');
9
10
Array.from(books).forEach(function(book){
11
- console.log(book);
+ book.textContent += ' (Book title)';
12
});
+
+const bookList = document.querySelector('#book-list');
+bookList.innerHTML = '<h2>Books and more books...</h2>';
+bookList.innerHTML += '<p>This is how you add HTML content</p>';
0 commit comments