parce list#2008
Conversation
Tendeeer
commented
Jun 14, 2026
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am approving your solution because it correctly implements all the core functional requirements of the task. Your sortList(list) function locates the <ul> list, parses the data-salary values via a dedicated parseSalary helper, and sorts the <li> elements in descending order by numeric salary before re-appending them to the list, which fulfills the sorting requirement. The getEmployees(list) function builds an array of employee objects with the exact required schema { name, position, salary, age }, converting salary and age to numbers, so the data extraction requirement is also met. Both functions are invoked, so the behavior is actually executed rather than just defined.
One small improvement for your own debugging and verification is to consider using or logging the result of getEmployees(list), so you can quickly confirm the produced array at runtime. Overall, the code is clear, focused on the requirements, and doesn’t introduce unnecessary complexity—well done on meeting the task’s expectations.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨