{ 7. What if choice1 is paper? }


#1

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

Hi, this is the part { 7. What if choice1 is paper? } what did I do wrong? I have been trying to do this for about an hour now! Please help me


#3

This is obviously just a snippet as it lacks a function and the rock case so maybe post the full code. Also what is the error message you receive? This part seems to be ok so maybe give some more information.