Help Plz: Computer Choice part 1


#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();
computerChoice;


#2

Hey @midnightlouie,

What's this for? :confused:

I believe that you're supposed to print it, not just write computerChoice.

console.log(computerChoice);

This would probably be what you have to do.


#3

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.