-
-
Notifications
You must be signed in to change notification settings - Fork 71
ITP London - May 2025 | Chi Mbah | Module Data Flows | Book Library #224
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.
Code is working good when the user behaves nicely.
Here are some suggestions for you to consider:
-
Lines 18-21:
- Using descriptive and consistent suffixes for DOM elements (like
El
,Input
,Btn
,Form
, etc.) can significantly improves code readability and maintainability.
- Using descriptive and consistent suffixes for DOM elements (like
-
Lines 67, 77:
- Are the values assigned to these
id
attributes unique? - Is there any need to assign an id attribute to either buttons?
- Are the values assigned to these
-
Line 62:
- The current method of assigning book titles to HTML elements can cause display issues if a title contains special character sequences like
<i>
.
- The current method of assigning book titles to HTML elements can cause display issues if a title contains special character sequences like
-
When I asked ChatGPT to review your code, it gave some useful suggestions that I missed. You should try it too and see if there is anything that you can use to improve your implementation.
debugging/book-library/index.html
Outdated
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.
HTML code is error free. Good job!
I was hoping you can address all my suggestions. |
@cjyuan Thanks for the suggestions. I've implemented them to my code |
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.