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

Michael Thompson
Michael Thompson
7,427 Points

Doesn't work

Not sure if it's because of the browser like it says in the teacher's notes or if I'm doing something wrong. I can't spot an error and the console doesn't tell me anything is wrong. So maybe it's working. Prompt shows up. Quit works, but at no point does anything print out. No data at all. Any help would be appreciated.

https://w.trhou.se/2szl1206ep

1 Answer

Steven Parker
Steven Parker
231,269 Points

After the "quit", the last successful search should display (the code does not yet accommodate multiple searches).

Note that the search is case-sensitive, so to be successful, the term must match the stored name exactly.