Skip to content

Commit 73d22f9

Browse files
committed
Console Error and author name have been solved
1 parent 1741239 commit 73d22f9

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
@@ -40,7 +40,7 @@ function submit() {
4040
alert("Please fill all fields!"); // alert is a built-in JS function
4141
return false;
4242
} else {
43-
let book = new Book(title.value, title.value, pages.value, check.checked);
43+
let book = new Book(title.value, author.value, pages.value, check.checked);
4444
myLibrary.push(book); // ???? the var called MyLibrary bro
4545
render(); // tell now where as submit event maybe later I will check
4646
}

0 commit comments

Comments
 (0)