Skip to content

Commit e9dbd8d

Browse files
committed
author/title name fixed
1 parent ad1b8ff commit e9dbd8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debugging/book-library/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function submit() {
3737
alert("Please fill all fields!");
3838
return false;
3939
} else {
40-
let book = new Book(title.value, title.value, pages.value, check.checked);
40+
let book = new Book(title.value, author.value, pages.value, check.checked);
4141
myLibrary.push(book);
4242
render();
4343
}

0 commit comments

Comments
 (0)