Build "Rock, Paper, Scissors" 3. Computer Choice: Part 1


This seems too straight forward I'm must be missing something.

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

whats wrong with this?? it keeps telling me Oops, try again. Did you remember to log computerChoice to the console? I'm not following. How do I log it?


Have you tried using console.log?


Just add and use console.log() to print out your computerChoice


I'm looking at other examples and I don't see where the console.log goes.


In this exercise, they want you to log computerChoice to the console so you can see what Math.random() does. Try it on your next line of code.


It's simple. What it asks you is to log the randomly generated computerChoice variable to the console. To do this, you can insert the following piece of code after the var computerChoice = Math.random() line:



Thanks, the dots were not connecting for me with this one. lol


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