Syntax error


var userChoice = prompt("message at prompt");
var computerChoice=Math.random();
if(computer choice <=0.33 )
else if(computerChoice >=0.34 && computer choice <=0.66 )
var computerChoice="scissors";


why not combine this 3 lines:

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

into one line? you can just store the result of the prompt in userChoice directly:

var userChoice = prompt("message at prompt")


but where I am wrong ?? Can anyone help !


this is where you are going wrong? if you still struggle, place an updated version of your code


updated the code but still getting the error.


computer choice is not the right variable, it should be computerChoice, replace all computer choice by computerChoice