Still stuck on this one! please help me!


#1

var userChoice = prompt("Do you want to choose rock, paper or scissors?")
var computerChoice = Math.random()
console.log(computerChoice);{

if( 0 < 0.33)
{
computerChoice2 = "Rock";
}
else
if (0.34 < 0.66)
{
computerChoice3 = "Paper";
}
else ( 0.67 < 1)
{
computerChoice4 = "Scissors";
};

Unexpected } is the current error


#2

Don't worry ive done it now!


#3

This is the first time I've seen someone using multiple computerChoice variables. I haven't tested if your method works or not, but if you're still having trouble i'm happy to share my working code. I think you might be looking for something more along the lines of this:

var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
console.log(computerChoice);

if (computerChoice < 0.34) {
    computerChoice = "rock";
} 
else if (computerChoice <= 0.66) {
    computerChoice = "paper";
} else {
    computerChoice = "scissors";
};

Best of luck!