Rock paper scissors cant get past Math.random()


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);


computerchoice was lowercase


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