4 Computer Choice Part 2. Please Help!



It says I have a, SyntaxError: Unexpected token else, but i don't what I did wrong

var userChoice=prompt("Do you choose rock, paper, or, scissors?");
var computerChoice=Math.random();
if (computerChoice<=.33)
    console.log("Computer choose rock");
else (computerChoice>=.34 && computerChoice<=.66)
    ("Computer choose paper");
else if (computerChoice>=.67 && computerChoice<=1)
    ("Computer choose scissors");


else doesn't take a condition.

when closing if remove the semi colon from after the bracket }; should be }


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