Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution/js_get_data_DOM #1041

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

Lazarend
Copy link

@Lazarend Lazarend commented Aug 19, 2023

Copy link

@SanyaBratashchuk SanyaBratashchuk left a comment

Choose a reason for hiding this comment

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

Demo Link is not working. run npm run deploy once again

@Lazarend
Copy link
Author

Oh, wow, I forgot about it.

Comment on lines 18 to 21
averageSpan.textContent = formatNumberWithCommas(
Math.round(averagePopulation)
);
totalSpan.textContent = formatNumberWithCommas(totalPopulation);

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Hi. Ok, I add a toLocaleString('en-US') and now its look better!

Copy link

@sTorba24 sTorba24 left a comment

Choose a reason for hiding this comment

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

Well done :) Cool naming used btw :)

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.

4 participants