I'm trying and can't understand. Now I'm trying do "Computer Choice: Part 1" and I,ve got this:
var userChoice = prompt ("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
And don't know what's next? I saw in other posts, people made "if" strings, but I cant'understand why and what should I do to go to the next steps?
The instruction says:"Under your previous code, declare a variable called computerChoice and make it equal to Math.random().
Print out computerChoice so you can see how Math.random() works. This step isn't needed for the game - just useful for learning!"
Someone can explain simply?
Replace this line with your code.