Skip to content

Conversation

@Natalia2408-forever
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. Rate AI review example

Comment on lines +14 to +15
let total = 0;
let average = 0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants