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

Cody Norman
seal-mask
.a{fill-rule:evenodd;}techdegree
Cody Norman
Full Stack JavaScript Techdegree Student 3,421 Points

Blank page even after typing 'quit'.

I've changed my code so much from what it originally was that it's unrecognizable from it's original, but no matter what I do I cant get anything to display on the page it's ALWAYS blank. Even after typing 'quit' into the prompt all that happens is the prompts no longer pop up but the page stays blank. Please let me know where I'm going wrong here, I've gone over this at least a dozen times looking at both the teachers solution and other users solutions but I'm coming up with nothing.

Updated with snapshot: https://w.trhou.se/s9pa1x5k34

Steven Parker
Steven Parker
231,275 Points

You can't share a direct URL to your workspace, it's temporary and only exists while you are using it.
But you can use the snapshot function in the workspace and provide the link to that.

1 Answer

Steven Parker
Steven Parker
231,275 Points

I'm not able to replicate your symptoms. If I enter a valid name, and then enter "quit", I see that student's data displayed on the page. If I enter nothing, or a name that does not exist, then when I enter "quit" I still see the word "Students" on the page (it is never completely blank).

And note that the search is case-sensitive, so "Dave" will be shown but "dave" will not.

Cody Norman
seal-mask
.a{fill-rule:evenodd;}techdegree
Cody Norman
Full Stack JavaScript Techdegree Student 3,421 Points

That's where my mistake was I was doing "dave". I forgot that the toLowerCase() was specifically for the "quit" function. Thanks again Steven!