Syntex error


#1

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

var anji = function (){

console.log(computerChoice);

if(computerChoice <= 0.33)
{

    return "equal to rock";
    };
    else if(computerChoice >= 0.34 && <= 0.66)
    {
 return "equal to paper.";
};
else{

    return "equal to scissors.";

    };

}

anji();

#2

You wrote:

This line syntax should be like this:
else if(computerChoice>=0.34 && computerChoice<= 0.66)

And your anji function should end with a semicolon. Second line from the bottom. Try and see if it helps.

If you test your code in codecademyLabs:link here , it can check syntax error for you and also JS Bin :link here. It's quick, useful and you can check error yourself.