6. what if first choice is a rock


what is my problem?i checked other too but couldnt find mine

        return "The result is a tie!"};

else if(choice1 === "rock") {

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


Start by identifying what your code is doing differently from what you want it to be doing.

You can't just skip ahead to the conclusion, you have to take the steps required to find it.