solution - #2311
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your solution successfully implements all the required functionality. The code correctly parses population data from the DOM, converts the string values to numbers by removing comma separators, calculates both the total population using reduce() and the average population using Math.round(), and formats the results with proper thousands separators. All nine country populations are properly included in the calculations, and both the .average-population and .total-population span elements are updated as required. The manual thousands separator logic, while unconventional, produces the correct output format. The implementation is complete and working as expected.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
DEMO LINK