Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Excellent work on this task! I am approving your solution as it correctly meets all functional requirements. The code successfully parses the data from the DOM, calculates the total and average, and updates the page with the correctly formatted numbers.
I have one small suggestion for future improvement. In src/scripts/main.js, the total and average variables are assigned a value only once. It's a good practice to declare such variables with const instead of let to prevent accidental reassignment and make your code's intent clearer. This is just a best practice tip and doesn't affect the functionality. Keep up the great work!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Footnotes
| let total = 0; | ||
| let average = 0; |
There was a problem hiding this comment.
These variables are assigned a value only once on lines 17 and 19. It's a good practice to use const for variables that are not reassigned. You could declare and initialize total and average with const directly where you calculate their values.
No description provided.