Syntax Problem


#1

I have been working on this exercise for about an hour now, playing around and trying different variations and reading through this forum and still can't figure out the problem. Could someone tell me what is wrong with what I have? Here it is:

var userChoice = prompt("Do you choose rock, paper or scissors?");

var computerChoice = Math.random(); {
if (computerChoice <= .33) {
console.log("Rock")
} else if (computerChoice <=.66) {
console.log("Paper")
} else (computerChoice >.66) {
console.log("Scissors")
}};

console.log (computerChoice);


#2

Never mind, finally figured it out:

var userChoice = prompt("Do you choose rock, paper or scissors?");

var computerChoice = Math.random(); {
if (computerChoice <= 0.33) {
computerChoice = "Rock"
} else if (computerChoice <= 0.66) {
computerChoice = "Paper"
} else {
computerChoice = "Scissors"
}};

console.log (computerChoice);