What is the problem of my code?always "Oops, try again. There was a problem with your syntax."


#1

I have not idea of what is wrong of my code
I think it looks right but it isn't
Hope u guys could plz help me,Thank u in advance
var userChoice = prompt("Do you choose rock, paper or scissors?");{
var computerChoice = Math.random();
console.log(computerChoice)
if (computerChoice<0.33){
computerChoice="rock"
;}
else if (computerChoice<0.66){
computerChoice="paper";}
if(computerChoice<1.0){
computerChoice="scissors";}




#2

HI you should remove the { on this line

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

then the last if statement should be a else statement

if(computerChoice<1.0){
    computerChoice="scissors";
}

like that

else {
    computerChoice="scissors";
}