London|ITP-Jan-2026 |Alexandru Pocovnicu | Sprint 2 | Book library #410
London|ITP-Jan-2026 |Alexandru Pocovnicu | Sprint 2 | Book library #410alexandru-pocovnicu wants to merge 30 commits intoCodeYourFuture:mainfrom
Conversation
…ality in render function
This comment has been minimized.
This comment has been minimized.
4 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cjyuan
left a comment
There was a problem hiding this comment.
Can you check if any of this general feedback can help you further improve your code?
https://github.com/cjyuan/Module-Data-Flows/blob/book-library-feedback/debugging/book-library/feedback.md
Doing so can help me speed up the review process. Thanks.
…space in script.js
…n and update button text handling
…tion checks in submit function
cjyuan
left a comment
There was a problem hiding this comment.
Changes look good. Just a few more suggestions.
| @@ -2,16 +2,15 @@ let myLibrary = []; | |||
There was a problem hiding this comment.
Safer to declare myLibrary using const, as it should not be reassigned another value.
| const titleInput = document.getElementById("title"); | ||
| const authorInput = document.getElementById("author"); | ||
| const pagesInput = document.getElementById("pages"); | ||
| const readCheckbox = document.getElementById("check"); |
There was a problem hiding this comment.
Common practice is to declare all shared variables/constants at the beginning of the file.
| let readStatus = ""; | ||
| if (myLibrary[i].check == false) { | ||
| readStatus = "Yes"; | ||
| } else { | ||
| readStatus = "No"; | ||
| } else { | ||
| readStatus = "Yes"; | ||
| } | ||
| changeBut.innerText = readStatus; | ||
| changeButton.textContent = readStatus; |
There was a problem hiding this comment.
This could be a good opportunity to practice using the ? : conditional operator. Can you rewrite the code on lines 84–90 as a single statement?
…o the top for better organization
Learners, PR Template
Self checklist
Changelist
debugged the code