Skip to content

Commit 44166ba

Browse files
committed
lesson 13
1 parent 4f3e79f commit 44166ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ addForm.addEventListener('submit', function(e){
2424
bookName.textContent = value;
2525
deleteBtn.textContent = 'delete';
2626

27+
// add classes
28+
bookName.classList.add('name');
29+
deleteBtn.classList.add('delete');
30+
2731
// append to DOM
2832
li.appendChild(bookName);
2933
li.appendChild(deleteBtn);
3034
list.appendChild(li);
31-
//list.insertBefore(li, list.querySelector('li:first-child'));
3235
});

0 commit comments

Comments
 (0)