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 #1422

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

Solution #1422

wants to merge 3 commits into from

Conversation

IvanVaniuk
Copy link

@IvanVaniuk IvanVaniuk commented Mar 4, 2025

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! 🎉 The code processes the people array correctly and dynamically creates a table to display the details. Just a small note: there's a minor typo in the gender display logic where 'Famele' should be corrected to 'Female'. Keep up the great work and attention to detail! 😊

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

Comment on lines 379 to 380
} else {
genderCell.textContent = 'Famele';

Choose a reason for hiding this comment

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

There is a typo in the word 'Famele'. It should be corrected to 'Female'. This is a minor issue but important for correct gender representation.

Choose a reason for hiding this comment

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

Fix it
image

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Good job 👍
Let's improve your code
All table elements must be inside the tag tbody
image

Comment on lines 379 to 380
} else {
genderCell.textContent = 'Famele';

Choose a reason for hiding this comment

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

Fix it
image

Comment on lines 377 to 381
if (human.sex === 'm') {
genderCell.textContent = 'Male';
} else {
genderCell.textContent = 'Famele';
}

Choose a reason for hiding this comment

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

Use ternary operator

Suggested change
if (human.sex === 'm') {
genderCell.textContent = 'Male';
} else {
genderCell.textContent = 'Famele';
}
genderCell.textContent = human.sex === 'm' ? 'Male' : 'Female';

Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

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

🔥

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