[Solved] I can't find a missing semicolon :( 4/13please help find it


#1

I can't find the missing semicolon - please help me

var userChoice = prompt("do you choose rock, paper or scissors?");
var computerChoice() = Math.random();
console.log(computerChoice);
if (computerChoice <= 0.33) {
return"rock";
} else if (computerChoice <= 0.66) {
return"paper";
} else {
return"scissors";
}


#2

pretty sure you need one at the very end of your else statement my friend


#3

Thanks for the help.


#4

The problem is that you use return where you should just assign the value to computerChoice. return is a keyword that is only allowed to be used in functions.