Computer choice PT2 issue help


#1

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


Problem with syntax


var userChoice = prompt("Do you choose rock, paper or scissors?")
var computerChoice = Math.random();
console.log(computerChoice)
    if (computerChoice <= 0.33) {
        return Rock ;
    } else if (computerChoice >= 0.34 < 0.66) {
        return Paper ;
} else { 
        return Scissors ;
}


#2

Got it! used console.log not return!
thanks!


#3

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