R-Jim / df-frontend-2023

https://df-frontend-2023-assignment1.vercel.app
0 stars 0 forks source link

Submission for assignment 1 #2

Closed R-Jim closed 1 year ago

R-Jim commented 1 year ago

Notes

zlatanpham commented 1 year ago

Hello @R-Jim, great start!

Requirements

Final result: ✅ passed 80% of the requirements

Feedback

We also have some comments for your work:

  1. 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. image https://github.com/R-Jim/df-frontend-2023/blob/main/assignment-1/index.html#L24

  2. If possible, move the inline style into the CSS file. image

  3. 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

  4. 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

  5. Close button should be a native HTML <button> element. The same suggestion goes for the delete button image image