What if choice1 is paper


#1


The only error message I get is syntax error on the first line "else if(choice1 === "paper"). Please help.


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

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


#2

Nothing wrong with this section of code, could you please copy and paste all of your code.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.