## 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.

# Having trouble with or operators

I am in the middle of the super conditional challenge, and for some reason this always comes up as incorrect. I know he will give me the answers in the next video, but I kind of want to have it all functional before I see it.

var questionTwo = prompt("What is the largest lake in the world"); if( questionTwo === 'caspian'.toUpperCase() || questionTwo === 'caspian sea'.toUpperCase() || questionTwo === 'the caspian sea'.toUpperCase() || questionTwo === 'the salty caspian sea'.toUpperCase() || questionTwo === 'salty caspian sea'.toUpperCase() ) { alert("that is correct! The salty Caspian Sea is the world's Largest Lake (by surface area): The salty Caspian Sea has the greatest surface area of any lake at 143,200 square miles."); correctAnswers += 1; } else { alert("that is incorrect. The salty Caspian Sea is the world's Largest Lake (by surface area): The salty Caspian Sea has the greatest surface area of any lake at 143,200 square miles."); wrongAnswers += 1; }

STAFF

Ok I'm only going to change one bit of your code so you can see why that answer will be correct and the others will be incorrect. Take a look at the first conditional statement and you should be able to see pretty clearly where your logic made a wrong turn! Hope this helps!

var questionTwo = prompt("What is the largest lake in the world");
if( questionTwo.toUpperCase() === 'CASPIAN' || questionTwo === 'caspian sea'.toUpperCase() || questionTwo === 'the       caspian sea'.toUpperCase() || questionTwo === 'the salty caspian sea'.toUpperCase() || questionTwo === 'salty caspian sea'.toUpperCase() ) {
alert("that is correct! The salty Caspian Sea is the world's Largest Lake (by surface area): The salty Caspian Sea has the greatest surface area of any lake at 143,200 square miles.");
correctAnswers += 1; }  else {
alert("that is incorrect. The salty Caspian Sea is the world's Largest Lake (by surface area): The salty Caspian Sea has the greatest surface area of any lake at 143,200 square miles.");