Not getting expected output


#1

var user= prompt("You are in adventure trip. you can do paraselling,banana ride and island hoping.Tell me what you wnt to do?").toUpperCase();
switch(user){
case 'paraselling':
var choice= prompt("Do you want to go in motor-boat?");
var option= prompt("Do you want a partner with you?");
if(choice=== yes && option=== yes){
console.log("Great!! Enjoy you ride:)");
}else{
console.log("Ok..As you wish.Enjoy yourself:)");
}
break;
case 'banana ride':
var choice1= prompt("Do you want a private boat");
var option1= prompt("Do you want us to take you far from the beach or not?");
if(choice1===yes || option1===no){
console.log("Ok..Enjoy the ride.It's gone be thrilling experience;)");
}else{
console.log("Yeah sure! Enjoy the ride");
}
break;
case 'island hoping':
var choice2= prompt("Do you want cover all islands?");
var option2= prompt("Do you want selling boat?");
if(choice2=== yes && option2===yes || choice2=== no && option2=== no){
console.log("Ok.Island hoping is one of the good part of our beach");
}else{
console.log("Can we suggest something? you should choose both.It is having more fun:)");
}
break;
default:
console.log("For this please contact our main office.Thank you!!");
}
my code is running but m not getting expected output.can anyone please tell me the solution?


#2

change from .toUpperCase() to .toLowerCase();

user= prompt("You are in adventure trip. you can do paraselling,banana ride and island hoping.Tell me what you wnt to do?").toUpperCase();<= change it

i think you'll undestand why

@pusadkar