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

My program doesn't seem to print out the records despite typing in a student's name who's records I know are there.

https://w.trhou.se/ancc8m9ufx

Here is the programming I have done. Would someone mind looking over my student_report.js file in the js folder and let me know what I'm missing?

Thank you.

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

Your code is fine. I think it is something with Chrome (is that what you are using?). I do see the names in Chrome after I put in "quit". When I run it in FireFox is works as expected - just like in the video.

If anyone knows what setting in Chrome blocks this I would be thrilled to know. I'm on Ubuntu 18.04 - not a Mac like the teachers and many others.

1 Answer

Hello, Anna Astle, I tried your program and it works well, this is a navigation problem, in the teacher's notes there is an explanation.

"Most browsers no longer do that: they wait until the loop finishes and then they print to the window. So, you'll see a blank page until you type quit in the prompt window β€” then you'll see all the output printed to the screen. Sorry for the confusion, and we'll update the video soon."

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

Ah ha - should always check those teachers notes.