This doesn't look right:
function userChoice = prompt("Do you want to choose rock, paper or scissors?");
I think you meant to declare the variable like this instead:
var userChoice = prompt("Do you want to choose rock, paper or scissors?");
A function is declared by using it in one of two ways:
function functionname() {
}
var functionname = function() {
}