-
-
Notifications
You must be signed in to change notification settings - Fork 125
SHEFFIELD| MAY 2025| Mayowa Fadare| Sprint 2| Data Flow| Book_library #300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you 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.
👍🏼Thanks you for the heads up, will check and get back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. Code can still be improved, but I will mark this PR as complete first.
const titleInputE1 = document.getElementById("title"); | ||
const authorInputE1 = document.getElementById("author"); | ||
const pagesInputE1 = document.getElementById("pages"); | ||
const checkInputE1 = document.getElementById("check"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The suffix is supposed to be El
(The first two characters of "element"), not E1
.
return false; | ||
} else { | ||
let book = new Book(title.value, title.value, pages.value, check.checked); | ||
library.push(book); | ||
const book = new Book(title, author, pages, check); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A page number containing decimal places could pass the check on line 33.
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.