Computer Choice Part 2


#1



Keep running into this syntax error and can't figure out where I'm wrong. I thought it must be about the placement of ";"s but I've tried a few different and made no progress.
Thanks for any help,

https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/0/4?curriculum_id=506324b3a7dffd00020bf661


SyntaxError: Expected ';'


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


#2

You are missing 2 semi colons. You also have an extra set of {} braces.


#3

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