What am i doing wrong


#1



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

if (computerChoice <= 0.33)
computerChoice = "rock"

if else (computerChoice <=  0.66) 
computerChoice = "paper"

else 
computerChoice = "scissors"


#2

It's else if, not if else :slight_smile:

If you don't remember correct syntax you can always check the reference -> http://docs.webplatform.org/wiki/javascript/statements/if_else