Idk what I'm doing wrong please help


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");


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


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


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.