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 Simplify Repetitive Tasks with Loops A Closer Look at Loop Conditions

Would wouldn't this work?

I did almost the same thing as Dave, but instead of creating a new random "guess" in the while loop, I called a function outside of the while loop that did the same thing. Mine didn't work, it made all my tabs unresponsive, including Workspaces. His way of doing was a lot more efficient, but I'm just wondering why my way didn't work too.

1 Answer

J.T. Gralka
J.T. Gralka
20,126 Points

bellapalumbi,

I'm curious to see the snippet of code you're talking about. Have you tested it out in your browser outside of the code challenge? Sometimes the code challenges here on Treehouse freeze up, and so the page needs to be refreshed occasionally.