I can't spot the problem


#1

I can't seem to figure out what the problem with this code is. I've tried using other ones but it still doesn't work. Please help.

else if (choice1 === "Rock") 
{
    if (choice2 === "Scissors") {
        return "Rock wins!";
    }
    else
    {
        return"Paper wins!";
    }
}

#2

you have an unclosed string here


#3

I fixed it but it still doesn't work.


#4

the exlcamation mark should be a part of the string or it is a n invalid character


#5

On my actual coding thing I have it as part of the string. I think I made some mistakes while posting. Still doesn't work .-. This is what it says
SyntaxError: expected expression, got keyword 'else'


#6

Nevermind. I'm good now, solved the problem.