Uh oh!
There was an error while loading. Please reload this page.
London | May-2026-itp | Vitalii Kmit | Sprint 2 | Book library - #554
London | May-2026-itp | Vitalii Kmit | Sprint 2 | Book library#554Vitalii-code wants to merge 17 commits into
Conversation
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/CodeYourFuture/Module-Data-Flows/blob/general-review-feedback/debugging/book-library/feedback.md
Doing so can help me speed up the review process. Thanks.
cjyuan
commented
Aug 15, 2026
Could you go through the guide again and make all possible improvements? |
- Rename DOM reference variables to signal element type (titleInput, authorInput, pagesInput, checkInput) - Change myLibrary from let to const - Trim title/author before storing, not just validating - Reject non-numeric and non-positive page counts - Replace blocking window.alert() with non-blocking showMessage() banner for delete confirmation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Vitalii-code
commented
Aug 17, 2026
Ok, should be good now |
| pagesInput.value.trim() == "" || | ||
| Number.isNaN(pageCount) || | ||
| !Number.isInteger(pageCount) || | ||
| pageCount <= 0 |
There was a problem hiding this comment.
Note: Two of these checks are optional (redundant).
Learners, PR Template
Self checklist
Changelist
Fixed the bugs