We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa0089f commit 48c8f6cCopy full SHA for 48c8f6c
debugging/book-library/script.js
@@ -38,7 +38,7 @@ function submit() {
38
)
39
{
40
alert("Please fill all fields!"); // alert is a built-in JS function
41
- return false;
+ return false;
42
} else {
43
let book = new Book(title.value, author.value, pages.value, check.checked);
44
myLibrary.push(book); // ???? the var called MyLibrary bro
@@ -81,7 +81,7 @@ function render() {
81
changeBut.className = "btn btn-success";
82
wasReadCell.appendChild(changeBut);
83
let readStatus = "";
84
- if (myLibrary[i].check == false) { // why not ===
+ if (myLibrary[i].check == true) { // why not ===
85
readStatus = "Yes";
86
87
readStatus = "No";
0 commit comments