To prompt user to choose again in case of a tie


#1

It behaves correctly, but in the case of a tie instead of just saying it's a tie I want it to prompt the user for another entry. I thought I did but it still just says "The result is a tie!" and moves on and I'm not prompted to choose again. Any help I can make it prompt again? Thanks

function compare(choice1, choice2){
    if( choice1 === choice2){
        return "The result is a tie!";
        prompt("Please choose again");
    }

#2

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