3. console.log is not a function


#1


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

It keeps saying error: console.log is not a function? What am I missing?


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


#2

> console.log('hello')
hello
> console.log = 5
> console.log('hello')
TypeError: console.log is not a function

#3

It was correct, just needed to refresh the page.