Computer Choice: Part 1 Rock, Paper, Scissors - SOLVED


#1


Not sure what is wrong here.
Error Message;
_Oops, try again. Did you remember to log computerChoice to the console?_


**Code:**
_var userChoice = prompt("Do you choose rock, paper or scissors?");_
_var computerChoice = Math.random();_


#2

Updated code ;

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

var computerChoice = Math.random();

console.log(computerChoice);

Resolved. Wasn't reading correctly - feel free to delete post!


#3

Please mark this post as solved then.


#4

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