Computer Choice Part 1


#1


https://www.codecademy.com/en/courses/javascript-beginner-en-Bthev-mskY8/0/3?curriculum_id=506324b3a7dffd00020bf661


var userChoice = prompt("Do you choose Rock, Paper, Scissors or Rope?");
var computerChoice = Math.random();


#2

lets say i have i have a variable:

x = 5

an i wanted to log it to the console, i can use console.log:

console.log(x);

now,you have a variable called computerChoice, which you want to log to console, based on my explanation, how do you think this should be done?


#3

console.log(computerChoice);

Thanks:smiley: