Rock, paper, scissors. What are my mistakes?


#1

Here is what I tried to code. I feel there are plenty of mistakes in my code. Please help me find them) I'd be very grateful.

var yourMove = prompt ("Rock, paper, scissors?")
console.log ("You chose" + " " + "yourMove")
{
if (yourMove=rock)
prompt ("I chose scissors. They break, you win!");
}
{ if (yourMove=scissors)
prompt ("I chose scissors too. Try again");
}
{else
prompt ("I chose scissors and cut yor paper! I win!");
}
}


#2

Hi inside your if and else if condition your should put equale with ===
And you should change your second if statement to else if statement

Edit :
And also inside your console.log() you should put yourMove without " " like that

console.log ("You chose" + " " + yourMove)

#3

Hi, also check your curly brackets { } orientations. Another thing on your second if statement use else if statement.