London | 26-ITP-January | Laura C | Sprint 2 | Book Library#401
London | 26-ITP-January | Laura C | Sprint 2 | Book Library#401lauracs24 wants to merge 4 commits into
Conversation
cjyuan
left a comment
There was a problem hiding this comment.
Can you also 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.
| title.value.trim() === "" || | ||
| author.value.trim() === "" || | ||
| pages.value === "" || | ||
| Number(pages.value) <= 0 |
There was a problem hiding this comment.
-
Rejecting negative page count is good. Perhaps the alert message should be rephrased accordingly?
-
What type of numbers should page count be?
There was a problem hiding this comment.
I updated validation so page count must be a positive whole number and improved the alert message
|
Thanks for the feedback. I reviewed the general feedback document and applied the relevant improvements
|
|
Changes look good. Well done. |
|
Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it. |
Learners, PR Template
Self checklist
Changelist
Questions
Are there any further improvements I could make to the structure or readability of this code?