Unexpected token else


#1

I have a problem with my code, but i don't see the error.

else if (choice1==="scissors")
if (choice2==="rock")
{
    return"rock wins";
}
else
{
    return "scissors wins";
}
};

#2

You're missing an opening bracket


#3

Omg yeah,

Sometimes you see nothing xD

Thank you


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.