London | 26-ITP-May | Yonatan Teklemariam | Sprint 2 | Book Library - #532
London | 26-ITP-May | Yonatan Teklemariam | Sprint 2 | Book Library#532Yonatanteklemariam wants to merge 4 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
left a comment
There was a problem hiding this comment.
Changes is solid. Just a few more suggestions.
| !pagesValue || | ||
| isNaN(pagesNumber) || | ||
| pagesNumber <= 0 || | ||
| !Number.isInteger(pagesNumber) |
There was a problem hiding this comment.
Some of the checks are probably redundant.
There was a problem hiding this comment.
I meant to point out: !Number.isInteger(pagesNumber) also covers isNaN(pagesNumber)
Even though the HTML form has been prepared to ensure the input is a whole number, it is still a safer practice to check the input again in JS.
…ved redundant validation for the browser handles validation on its own..
|
Changes look good. |
|
Thank you for your persistence and mentoring me through the right direction. I've removed the validation in the js as a form with its inbuilt validation is added in the html. But it's essential to have some validation in the js as you suggested as well. |
Learners, PR Template
Self checklist
Changelist
fixed the wrong variable name of the library
corrected the author field and changed it to author.value
repaired the read/unread logic
fixed the delete button by fixing the correct variable name
repaired the syntax error in the render function
Questions