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

my program is working but not on squiz page so i am stuck

var answer = prompt("What is the best programming language?"); if (answer.toUpperCase() === 'RUBY') { alert("you are correct"); }

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,863 Points

Hi Benoit,

It's always best to click the "Get Help" button on the quiz/video/challenge page, as this will link the Post directly to the quiz/challenge/video.
With that said, I can't be 100% sure because you are not linked to the Challenge, but if I remember right, you do not have what the challenge is asking for. Challenge have very specific instruction and they need to be followed exactly. Again, I'm not sure, but go back and read the instructions carefully. If I'm thinking of the right challenge, it should be JavaScript and not Ruby and there is nothing said about checking an Upper-cased version.

Hope that helps, but remember for next time, to link from the page which your are have the problems.

Keep coding! :) :dizzy:

THANK YOU SO MUCH FOR INFORMATION, kindest regards Ben