Can help me


#1

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


#2

Hi this part of your code

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

Should have that structure

else if (condition) {
    if ( condition) {

    }
    else {


    }
}