8. What if choice1 is scissors?



SyntaxError: Unexpected end of input



SyntaxError: Unexpected end of input

you didnt close your function at the end after closing third else if


else if (choice1 === "scissors") {
    if (choice2 === "rock") {
        return "rock wins";
    else {
        return "paper wins";}
compare(userChoice, computerChoice);



you dont need it

also who will win if inputs are scissors and paper ?


Good point haha! Got it all fixed up. Thanks for your help!


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