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 trialCarey Chan
1,319 PointsBug with my code? When I type 'list' in the search, the prompt comes up again and my browser and workspace freezes.
Not sure if there is something wrong with my code. I'm following along this video word for word. But whenever I preview my code and type in 'list' to get the list, the prompt just show up again and my workspace and treehouse tab in the browser completely freezes up. I have to restart everything just to get back to where I was and cannot find out why it is doing this.
2 Answers
Steven Parker
231,269 PointsDid you see this comment in the code: "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"?
After entering "list", when the prompt appears again I type "quit", and all the output appears exactly as the comment says.
Libor Gess
6,880 PointsGood afternoon Carey Chan,
yes as Steven say and note the comment. But you can still write break; after the block of the code. It will break the loop and show up with the result.