Well,
I took a few minutes to check what your code was doing in the scratchpad and I got it to return the following:
and that was it.
Looking at the code, I see you are assigning the function to
var compare but you never seem to do anything with
compare.
Code:
var compare = function(choice1, choice2) {
if (choice1 === choice2) {
...<snip>...
} else {
return("rock wins");
}
}
};
Perhaps set up an
alert to take the return of the function and put it out to the user?
HTH. Let us know.