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!

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

Why is the site not accepting my do...while?

I'm another victim of this trash do...while challenge task. Here's the code I wrote:

var guessCount = 0;
var secretCount = false;

do { var secret = prompt("What is the secret password?"); guessCount += 1; if (secret.toLowerCase() === "open sesame") { secretCount = true; } } while (!secretCount) document.write("You know the secret password. Welcome.");

I'm not even getting a "Bummer" notice, I'm getting "Oh no! We didn't hear from the challenge service in a timely fashion. If you continue experiencing problems, please contact support at help@teamtreehouse.com". And I contacted support and they freaking sent me to ask the community. So what gives?

2 Answers

The secret is just "sesame" not "open sesame". After that you'll receive a different error message that is easily fixed.

That wasn't the only fix and it honestly makes ZERO sense for a system to be so specific about something that it's actually code related. Ridiculous.