3.Computer Choice: Part 1


#1

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

I cannot seem to get the code right, even after searching through other posts. I keep on getting this error message from codeacademy: "Oops, try again. Your code doesn't look quite right. Check the Hint if you need help!" and this one in the log: "TypeError: console.log is not a function" even though I never stated it as a function.Can anyone help?

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

#2

Hi try to resfresh the page..


#3

Wow, I feel so stupid.... :smile:


#4

why? you are not .. that error show up when you do something like that

console.log = (computerChoice);

then when you remove the = the error is still here so you just need to refesh the page..