Build "rock, Paper, Scissors" 9



it actually gave me this


and what happens when you call the compare() function
without using a console.log().....???


it only outputs the computer result


I would put an extra console.log( userChoice ); just under the computerChoice-display
could you give the FULL code you are using.....


if any need a help hope following code works

var compare=function(choice1,choice2){
if(choice1 === choice2) {
return "The result is a tie";

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

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