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

Billy Chui
Billy Chui
6,852 Points

Help me please, so close but why is my code only print when i press 'quit'?

https://w.trhou.se/3mgyce9bex

i spent more than 4 hours and i really don't know how i can fix that

1 Answer

Steven Parker
Steven Parker
210,424 Points

What you are describing is normal operation. Proceed to the next video and see the "Important Update" under the Teacher's Notes for an explanation.

Billy Chui
Billy Chui
6,852 Points

Thanks for the reply Steve, I spent whole day trying to figure out the code by myself before I proceed to the next lesson. They should post the ”important update” under the challenge instead of solution. Thanks Steve is my code correct?

Steven Parker
Steven Parker
210,424 Points

If it works when you enter "quit", the code is correct. Happy coding!