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 trialSara Garcia Velazquez
952 PointsI know this is right in front of my nose, but I'm having a hard time figuring it out. What's wrong with this code:
var answer = prompt("What programming language is the name of a gem?"); if ( answer.toUpperCase() === 'RUBY' ) { document.write("<p>That's right!</p>"); } else { document.write("<p>Sorry,that's wrong</p>");
1 Answer
KRIS NIKOLAISEN
54,972 PointsYour else statement is missing a closing curly bracket
Sara Garcia Velazquez
952 PointsSara Garcia Velazquez
952 PointsThank you!