We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca9c7e5 commit aeb02b2Copy full SHA for aeb02b2
1 file changed
app.js
@@ -1,9 +1,8 @@
1
-var books = document.querySelectorAll('#book-list li .name');
+const banner = document.querySelector('#page-banner');
2
3
-Array.from(books).forEach(function(book){
4
- book.textContent += ' (book title)';
5
-});
+console.log('#page-banner node type is:', banner.nodeType);
+console.log('#page-banner node name is:', banner.nodeName);
+console.log('#page-banner has child nodes:', banner.hasChildNodes())
6
7
-const bookList = document.querySelector('#book-list')
8
-//bookList.innerHTML = '<h2>Books and more books</h2>'
9
-bookList.innerHTML += '<p>This is how you add HTML</p>'
+const clonedBanner = banner.cloneNode(true);
+console.log(clonedBanner)
0 commit comments