Birmingham | 26-ITP-Jan | Tasleem Adedokun | Sprint 2 | Book Library#428
Birmingham | 26-ITP-Jan | Tasleem Adedokun | Sprint 2 | Book Library#428tasleemadedokun wants to merge 15 commits intoCodeYourFuture:mainfrom
Conversation
… of syntax error.
…function addbook too.
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.
…html validation with required, pattern and min, also load script with type module.
Hi, I have updated it. Thanks |
| const authorValue = authorInput.value.trim(); | ||
| const pagesValue = Number(pagesInput.value); | ||
|
|
||
| if (!titleValue || !authorValue || pagesValue <= 0) { |
| const table = document.getElementById("display"); | ||
|
|
||
| table.innerHTML = ` | ||
| <tr> | ||
| <th>Title</th> | ||
| <th>Author</th> | ||
| <th>Pages</th> | ||
| <th>Read</th> | ||
| <th>Delete</th> | ||
| </tr> | ||
| `; |
There was a problem hiding this comment.
You could also just clear <tbody>.
There was a problem hiding this comment.
Hopefully, I have addressed all once and for all.
Thanks.
Learners, PR Template
Self checklist
Changelist
Brief:
I have made several commits and fixed the bugs to the best of my ability.