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


Current code:

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

var computerChoice = Math.random();

What am I doing wrong? Thanks!


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


Great! Thanks, that solved the issue.


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


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