solution - #2306
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am approving your solution because the JavaScript in src/scripts/main.js correctly implements all required functionality: it reads the .population span values, strips commas, converts them to numbers, computes both total and average, and writes the formatted results into .average-population and .total-population with the proper thousands separators. This means the core checklist items around parsing, calculation, and DOM updates are fully met and there are no functional blockers.
One thing to be aware of is that, according to the task, only main.js should be changed; you respected that for styles and layout, which is good. Also, remember to update the demo link with your GitHub username and use npm run lint as requested in the task instructions, even though those aspects aren’t visible in this review. As a minor improvement (not required for passing), clearer variable names like average, total, and count would make the code easier to read and maintain. Overall, you’ve met the requirements for this task—nice work.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
No description provided.