-
-
Notifications
You must be signed in to change notification settings - Fork 73
London | Maryn Romanova | Module-Data-Flows | Book Library Project #206
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 review all of the places that you declared a variable with 'let'? In general, you will mostly always use const (and this should be your default). If you need to reassign a value to the variable, then you would use let. Here is a video you can watch: https://youtu.be/RE6qf3As-XU?si=_YaiEPeBC5Cx_j56
-
The 4 variables on lines 24-27 are currently declared as global variables. However, they are only used within the submit function.
Can modify your code so that they are no longer global variables and are declared as local variables?
Making this change means the variables won't be created until they are needed within the submit function. This makes the code cleaner and more maintainable!
https://www.w3schools.com/js/js_scope.asp -
Currently your application does not have a title in the browser tab (see screenshot). Can you update the application title to something more meaningful?

-
After adding a new book to the library, the form still contains the books details. If I want to add another book, I have to clear out the form fields. Can you update the application to clear out the fields after successfully adding a book to the library?
-
Please make sure to update the Changelist section of the PR with a short explanation of your changes.

@jenny-alexander You gave a review yesterday. So I assumed you meant to add "Reviewed" label and changed the label. @MarynaRomashca Please respond the the reviewer's feedback and change your code accordingly. Your Step 4 will only be approved when you have completed this PR. |
@jenny-alexander and @cjyuan I have change my code accordingly. @jenny-alexander please approve my PR, or let me know if I need to do extra work. |
@MarynaRomashca - can you please check the "read" status when adding a new book? It seems to be doing the opposite of what is intended.
|
@jenny-alexander Thanks for your time. Done, I have up dated the "read" status in the right direction. |
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.
Approving but pointing out that the changelist portion is still not updated.
@jenny-alexander Thanks for aprroval. Sorry, I don't understend, where is a ChangeList? How to find it?
|
@MarynaRomashca This "Changelist" |
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.