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 aa36d97 commit c779159Copy full SHA for c779159
app.js
@@ -1,9 +1,8 @@
1
-const 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 content</p>';
+const clonedBanner = banner.cloneNode(true);
+console.log(clonedBanner);
0 commit comments