Skip to content

Commit f7650fe

Browse files
committed
8 video
1 parent 3220ad1 commit f7650fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app.js

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

3-
console.log('the parent mode is:', bookList.parentNode);
4-
console.log('the parent element is:', bookList.parentElement.parentElement);
3+
console.log('book-list next sibling is:', bookList.nextSibling);
4+
console.log('book-list next element sibling is:', bookList.nextElementSibling);
55

6-
console.log(bookList.childNodes);
6+
console.log('book-list previous sibling is:', bookList.previousSibling);
7+
console.log('book-list previous element sibling is:', bookList.previousElementSibling);
8+
9+
bookList.previousElementSibling.querySelector('p').innerHTML += '<br/>too cool for everyone else!';

0 commit comments

Comments
 (0)