Computer choice


#1

Hey guys,

I can't seem to get past Computer choice: Part 1. Here is my code

var userChoice = prompt("Do you chose rock, paper or scissors?")
console.log(Math.random());
var computerChoice = Math.random();

It asks me if i remember to log comupterChoice to the console, but I think i did that, but I seem to be wrong.

Any suggestions?
Thanks in advance


#2

set Math.random() to computerChoice and then console.log(computerChoice)


#3

Thank you very much.
makes more sense now


#4

No worries, anytime.


#5

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