Closed R-Jim closed 1 year ago
Hello @R-Jim, great start!
Final result: ✅ passed 80% of the requirements
We also have some comments for your work:
It is considered a best practice to avoid including inline JavaScript code within HTML. A more recommended approach is to incorporate addEventListener within the script file to manage event handling. By doing so, this promotes separation of concerns, resulting in a more organized and maintainable codebase. https://github.com/R-Jim/df-frontend-2023/blob/main/assignment-1/index.html#L24
If possible, move the inline style into the CSS file.
Should wrap the JSON parse inside an try-catch
. Also consider validating the data before passing it to the function
https://github.com/R-Jim/df-frontend-2023/blob/main/assignment-1/script.js#L17
Try to avoid relying on reading data from storage to render the list. It’s much more efficient to render the UI directly from a variable. https://github.com/R-Jim/df-frontend-2023/blob/main/assignment-1/script.js#L17
Close button should be a native HTML <button>
element. The same suggestion goes for the delete button
Notes
styles.css
Add book
modal, search displayed books keeps search state afteradd/delete
a book