Skip to content

Commit bcdeab2

Browse files
committed
Uzdevums
1 parent d73f392 commit bcdeab2

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

‎app.js‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
var titles = document.getElementsByClassName('title')
1+
const wmf = document.querySelector('#book-list li:nth-child(2) .name');
2+
//console.log(wmf);
23

3-
Array.from(titles).forEach(function(item){
4-
console.log(item);
5-
});
4+
var books = document.querySelector('#book-list li .name')
5+
//console.log(books);
6+
7+
books = document.querySelectorAll('#book-list li .name')
8+
//console.log(books);
9+
10+
Array.from(books).forEach(function(book){
11+
console.log(book)
12+
})

0 commit comments

Comments
 (0)