Hey guyz can you fetch the wrong here?


#1


i still have problems messages, what did i wrong guys ?? thanks

var userChoice = prompt("Question"); 
var computerChoice = Math.random();
if ( computerChoice >0 && computerChoice<0.33){
    computerChoice="rock";}
    else if ( computerChoice >0.34 && computerChoice >0.66) 
    {
            computerChoice="paper";
            }
            else {
                computerChoice="scissore";
                }
        
console.log(userChoice)
console.log(computerChoice)


#2

Update your prompt--

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

As I can figure it out...You're here
https://www.codecademy.com/en/courses/javascript-beginner-en-Bthev-mskY8/0/4

Update**
there is slight spelling mistake that you can get rid of..

computerChoice="scissore"
it should be
computerChoice="scissors"
Your code works!
You need any of the 3 options...
rock,paper,scissors


#3

Check the update if you're still getting the error! :slight_smile:
(my battery died last day while answering this one(post) and thus I probably missed that error) :smiley:


#4

thanks man, I realized it was a typo in the answer hhahh


#5

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