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

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
229,783 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
229,783 Points

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