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

Maxim Melnic
Maxim Melnic
4,178 Points

Dublicate Values Solution

Hi, sorry for my English) I have a similar code and I think that there is no need for another solution to display duplicates. Please see my screenshot. All and so it works!

Screenshot: link: https://imgur.com/a/TrkTT0A

Adam Beer
Adam Beer
11,314 Points

It look like good. I don't fully understand, what is your question or problem. Please tell we.

Postscript: Use only one Maxim name, and the code just returns one name. Later in javascript you learning how can use specific id and then the search is will be more accurate.

Maxim Melnic
Maxim Melnic
4,178 Points

In the training video, when you enter a name that has a duplicate, only one name is displayed. My code ia a similar and displays all names with duplicates. Why?)