- Replace
<your_account>with your Github username in the link - Follow this instructions
- There are no tests for this task so use
npm run lintcommand instead ofnpm test
- There are no tests for this task so use
Hello! In this task, you need to parse data from the list, and based on it get the average and total value.
You no need to change styles or HTML layout in this task. Change only main.js file.
Steps to do this challenge:
- Get all text data from
spanwith classpopulation - Make sure that the given string can be converted to a number and convert it to number.
- Calculate average and total value-based to parsed numbers.
- Replace
Calculate it!with calculated average numbers inspanwith classesaverage-populationandtotal-population. - Calculated
averageandtotalnumbers must be separated by a thousands separator(same numeric style as populations presented). - Congrats, mate! You did it!
