JavaScript JavaScript Loops, Arrays and Objects Tracking Data Using Objects The Student Record Search Challenge Solution

Cody Norman
Cody Norman
Full Stack JavaScript Techdegree Student 3,172 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
202,004 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
202,004 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
Cody Norman
Full Stack JavaScript Techdegree Student 3,172 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!