Skip to content

add task solution#2174

Open
IvanovvvIhor wants to merge 1 commit intomate-academy:masterfrom
IvanovvvIhor:develop
Open

add task solution#2174
IvanovvvIhor wants to merge 1 commit intomate-academy:masterfrom
IvanovvvIhor:develop

Conversation

@IvanovvvIhor
Copy link

- [DEMO LINK](https://<IvanovvvIhor>.github.io/js_get_data_DOM/)

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 implements all the requirements. The code successfully parses the data, calculates the total and average population, and updates the page with the formatted numbers. The implementation is clean and easy to follow.

For future reference, you could consider using the Array.prototype.reduce() method to calculate the sum. It's a more modern and concise approach, but your current for loop is perfectly correct and works well. 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

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