Computer Choice Part 1


#1


Cant believe I'm immediately stuck on this, have played around, can't seem to make it work though, any ideas what the problem is?

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


Error message on save is:
Oops, try again. Did you remember to log computerChoice to the console?


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


#2

here:

console.log("computerChoice");

you log a string computerChoice to the console, you should log the variable (by removing the quotation marks ("))


#3

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