Can't Find My Mistake :(


#1


Build Rock, Paper, Scissors Sec 4 (Computer Choice Part 2)

SyntaxError: missing before statement


var userChoice = prompt("Do you choose rock, paper, or scissors?");
var computerChoice= Math.random() {
    if  (computerChoice < 0.34) 
    {
    computerChoice = "rock";
    }
    else if (computerChoice <= 0.67)
    {
        computerChoice = "paper";
        }
    else 
    {
        computerChoice = "scissors";
        };


#2

var computerChoice= Math.random() { // SyntaxError: Unexpected token {

so remove {


#3

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