Conversation
ybriukhovetska
commented
Feb 22, 2026
- DEMO LINK
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Great work on implementing the table generation logic, especially the calculations for age and century! I am requesting one small change before this can be approved. The 'Gender' column in the generated table is currently empty because the code attempts to access person.gender, but the property in the data objects is actually named sex. To fix this, please update your code in src/scripts/main.js to use person.sex instead. Once that's corrected, the table will display all the required data perfectly.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
src/scripts/main.js
Outdated
| const tr = document.createElement('tr'); | ||
|
|
||
| tr.appendChild(makeTd(person.name)); | ||
| tr.appendChild(makeTd(person.gender)); |
There was a problem hiding this comment.
It seems you're trying to access the gender property, but the objects inside the people array use the property name sex. This will result in an empty table cell for the gender column.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Excellent work! I am approving this pull request. You've successfully addressed the feedback from the previous review by using person.sex to populate the gender column. The code now correctly implements all the task requirements, and the table is generated perfectly with all the necessary data. Great job!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨