Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Loops, Arrays and Objects Tracking Data Using Objects The Student Record Search Challenge Solution

Please, Review my solution

4 Answers

Carlos Alberto Del Cueto Carrejo
Carlos Alberto Del Cueto Carrejo
13,817 Points

I really like your solution to the problem, there are two things that you could change, one is to refresh the info as to not have all the list of students that you input and just show one student per submition. Good solution to the duplicate person problem, I would have added a student ID or to the JSON, and made sure only one would show up, or maybe a list with usernames then search by username. Well done

thanks for your comment <3 .

i will describe to you what i understood from your comment :

First, make search with name and when the program find two student with the same name .. the program show up input dialog to make user input the last name of student or any info about it like age or Id .

Second, not to show all student with the same name and make search with ID of the student .

right ? or i translated your comment in wrong way .

Hi wouldn't it be good to keep the program listing all the students with a particular name if maybe you just know the person's name but forgot other details about them, then when you get that list you can verify which one you really want.

Carlos Alberto Del Cueto Carrejo
Carlos Alberto Del Cueto Carrejo
13,817 Points

Yes , you got it. Since you are also taking some PHP in the future you will be able to mix both languages and accomplish this ;)

thank you for your words and your interesting <3