London | 26-ITP-Jan | Carlos Abreu |Sprint 2 | Book Library#449
London | 26-ITP-Jan | Carlos Abreu |Sprint 2 | Book Library#449carlosyabreu wants to merge 3 commits intoCodeYourFuture:mainfrom
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 |
| const readCheckbox = document.getElementById("check"); | ||
| const submitBtn = document.getElementById("submitBtn"); | ||
|
|
||
| let myLibrary = []; |
There was a problem hiding this comment.
Safer to declare this using const, as myLibrary should not be reassigned a new value.
| library.push(book); | ||
| render(); | ||
| function submit(event) { | ||
| event.preventDefault(); // prevent any form-like behavior |
There was a problem hiding this comment.
You didn't use any form in HTML though.
Learners, PR Template
Self checklist
Changelist
Book library's PR