3/9 need help "TypeError: console.log is not a function"


#1

Current code:

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

var computerChoice = Math.random();
console.log(computerChoice);

What am I doing wrong? Thanks!


#2

I tried your code, there doesn't seem to be any problem. Maybe try restarting the browser?


#3

Great! Thanks, that solved the issue.


#4

you forgot your curly brace after Math.random(); { and to close up the braces put it after console.log(computerChoice); }


#5

No there is no need for curly braces after Math.random.