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

taskGenerateTable #1415

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

Conversation

WalentynaSadowa
Copy link

No description provided.

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 meeting the task requirements! 🎉 Your code successfully processes the people array and populates the table as expected. However, for future improvements, consider ensuring consistency in property names by using 'sex' instead of 'gender' throughout your code. Also, avoid redefining the people array inside the event listener to keep your code clean and efficient. Keep up the good work! 🚀

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

Comment on lines +360 to +373
const people = [
{
"name": "Bernardus de Causmaecker",
"gender": "m",
"born": 1721,
"died": 1789
},
{
"name": "Lieven de Causmaecker",
"gender": "m",
"born": 1696,
"died": 1724
}
];

Choose a reason for hiding this comment

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

The 'people' array is redefined inside the DOMContentLoaded event listener. This is redundant since the 'people' array is already defined globally. Consider using the global 'people' array instead.

const people = [
{
"name": "Bernardus de Causmaecker",
"gender": "m",

Choose a reason for hiding this comment

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

The property 'gender' is used here, but in the global 'people' array, the property is named 'sex'. Ensure consistency in property names to avoid confusion.

},
{
"name": "Lieven de Causmaecker",
"gender": "m",

Choose a reason for hiding this comment

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

Again, 'gender' is used instead of 'sex'. Ensure consistency in property names throughout the code.

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