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

Phong Somlith
5,675 PointsStudent Record Search Challenge... code not working
I followed Dave's code solution but somehow my code is not displaying the student's records when typing in an existing student name. Am I missing something here? Please help!
code below:
2 Answers

David Alberto Mogollon
Full Stack JavaScript Techdegree Student 13,759 Pointswell i saw your code, you just need to be sure about the lowerCases in the line 25.
try replacing with this :
if ( student.name.toLowerCase() === search.toLowerCase() ) {
also if you want to get all the students with the same name you can check my code :

David Alberto Mogollon
Full Stack JavaScript Techdegree Student 13,759 PointsYou are welcome : )
Phong Somlith
5,675 PointsPhong Somlith
5,675 PointsThank you very much David. Your suggestion works! I really like the simplicity of your code