What is wrong with my code for Rock, Paper, Scissors, Computer Choice Part 1


Every time I try to run this it keeps saying typeError: console.log is not a function. At first, I thought maybe I spelled it wrong, but I even looked up the answer and copied and pasted it from other sites I found and it still didn't work. I don't know what is wrong with this part!

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


Have you tried a reset of your Browser

++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser


Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom