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

add task solution #1533

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add task solution #1533

wants to merge 1 commit into from

Conversation

rekverr
Copy link

@rekverr rekverr commented Oct 20, 2024

  1. Replace rekverr with your Github username in the link
  2. Follow this instructions
    • There are no tests for this task so use npm run lint command instead of npm test

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.

Great job on the pull request! 🎉 While there are a couple of minor issues, like the use of replaceAll and a missing semicolon, they don't critically impact the functionality. Keep up the good work and consider these suggestions for future improvements!

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨


let total = 0;

const setting = population

Choose a reason for hiding this comment

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

There is a missing semicolon at the end of this line. It's important to maintain consistency in your code style.

return el.textContent;
})
.map((el) => {
return el.replaceAll(',', '');

Choose a reason for hiding this comment

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

The method replaceAll is not supported in all browsers. Consider using a more compatible method like replace with a global regular expression.

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