Skip to content

Commit 48c8f6c

Browse files
committed
all bugs to be fixed have been solved
1 parent fa0089f commit 48c8f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debugging/book-library/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function submit() {
3838
)
3939
{
4040
alert("Please fill all fields!"); // alert is a built-in JS function
41-
return false;
41+
return false;
4242
} else {
4343
let book = new Book(title.value, author.value, pages.value, check.checked);
4444
myLibrary.push(book); // ???? the var called MyLibrary bro
@@ -81,7 +81,7 @@ function render() {
8181
changeBut.className = "btn btn-success";
8282
wasReadCell.appendChild(changeBut);
8383
let readStatus = "";
84-
if (myLibrary[i].check == false) { // why not ===
84+
if (myLibrary[i].check == true) { // why not ===
8585
readStatus = "Yes";
8686
} else {
8787
readStatus = "No";

0 commit comments

Comments
 (0)