Idk what I'm doing wrong please help


#1

var compare = function(choice1, choice2) {
if(choice1 === choice2) {
return ("The result is a tie!");
}

else if (choice1 === "rock"){
if(choice2 === "scissors") {
return ("rock wins");
}
else {
return ("paper wins");
}
};


#2

What seems to be the problem? You've posted some code but I have no idea what I'm supposed to do with it.


#3

You need to figure out what's wrong with it.


#4

I have no such need. And "wrong" can mean anything. My point is that there is no question being asked here, just a request for help.

So my help is to suggest identifying the problem, otherwise there is nothing to solve.