3/9 help


#1

My code won't work, the console says (TypeError: console.log is not a function ).
Any help will do.

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


#2

Hi your code its correct try to refresh the page.


#3

This happens when something like this:

console.log = (...)

was used. This overwrites console.log with a value so in the progress you can't use it as a function any more. Refreshing the page now resets the javaScript which should solve the problem if your code is correct. Sidenote as the console echoes the last value unless it is undefined you could (just for fun) cut als the code and just enter console.log to see what value it has now :wink: