Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
210,111 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
210,111 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!