Can help me


#1

var compare = function(choice1,choice2) {
if (choice1===choice2)
{
return "The result is a tie!";
}
else if (choice2 === "rock")
{
return "paper wins";
}
else{"scissors wins";}
if (choice2 === "rock")
{
return "rock wins";
}
if (choice2 === "paper")
{
"scissors wins";}
};
it tell me .Oops, try again. Your code returned 'paper wins' instead of 'undefined' when the inputs are scissors and rock


#2

Exactly what do you need help with? Be detailed and specific with your question