Rock paper scissors cant get past Math.random()


#1

Computer choice:Part 1

I cant get past this code and i always gives me the error: "ReferenceError: computerchoice is not defined" I have tried inputting values and even copying what it says in the hints and if i look at everyone else's code they wrote the same thing as me.

This is my code:


var userChoice = prompt("do you choose rock,paper,or scissors")
var computerChoice = Math.random(0.1);
confirm(computerchoice)


#2

computerchoice was lowercase


#3

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