We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56c0b4d commit ca9c7e5Copy full SHA for ca9c7e5
1 file changed
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
+var books = document.querySelectorAll('#book-list li .name');
9
10
Array.from(books).forEach(function(book){
11
- console.log(book);
12
-})
+ book.textContent += ' (book title)';
+});
+
+const bookList = document.querySelector('#book-list')
+//bookList.innerHTML = '<h2>Books and more books</h2>'
+bookList.innerHTML += '<p>This is how you add HTML</p>'
0 commit comments