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 trialSimon Jensen
484 PointsI see and understand what the do while loop does. I just do not understand why you would do that in this treestory.
I mean, why would you control if dork or jerk is mention before the user types something.
2 Answers
Joseph Frazer
5,404 PointsThe reason we want to keep looping in Treestory is because we want a valid noun. If they do not have a valid noun we want to ask again.
Alberto Castro
9,311 PointsThis helped me understand it better