4. Computer Choice: Part 2 help!


#1



https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/0/4?curriculum_id=506324b3a7dffd00020bf661#


Not sure why my code isn't working, can anyone help?

This is the srror message I get:
syntaxError: Unexpected token else


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";
}

Thanks!


#2

Supposed to be else if


#3

Aghh quit answering questions right before I do @zainabrawat :rage: :joy: