Skip to content

Commit 3220ad1

Browse files
committed
7 video
1 parent 500ea20 commit 3220ad1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

app.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
const banner = document.querySelector('#page-banner');
1+
const bookList = document.querySelector('#book-list');
22

3-
console.log('#page-banner node type is:',banner.nodeType);
4-
console.log('#page-banner node name is:',banner.nodeName);
5-
console.log('#page-banner has child nodes:',banner.hasChildNodes());
3+
console.log('the parent mode is:', bookList.parentNode);
4+
console.log('the parent element is:', bookList.parentElement.parentElement);
65

7-
const clonedBanner = banner.cloneNode(true);
8-
console.log(clonedBanner);
6+
console.log(bookList.childNodes);

0 commit comments

Comments
 (0)