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 3809f61 commit d883baaCopy full SHA for d883baa
debugging/book-library/script.js
@@ -85,12 +85,7 @@ function render() {
85
toggleReadBTN.id = i;
86
toggleReadBTN.className = "btn btn-success";
87
wasReadCell.appendChild(toggleReadBTN);
88
- let readStatus = "";
89
- if (myLibrary[i].check == false) {
90
- readStatus = "No";
91
- } else {
92
- readStatus = "Yes";
93
- }
+ let readStatus = myLibrary[i].check ? "Yes" : "No";
94
toggleReadBTN.innerText = readStatus;
95
96
toggleReadBTN.addEventListener("click", function () {
0 commit comments