Help Plz: Computer Choice part 1


I don’t know what is wrong with this code.
var userChoice = prompt(“Do you choose rock, paper, or scissors?”);
var computerChoice = Math.random();


Hey @midnightlouie,

What’s this for? :confused:

[quote=“midnightlouie, post:1, topic:14884”]
[/quote]I believe that you’re supposed to print it, not just write computerChoice.


This would probably be what you have to do.


This might as well show you the value of computerChoice, because the last value in a script is echoed on the console. But if the instructions demand to use console.log then this would not be sufficient.