5. Logical operators - my code returns Syntax error


#1

Can somebody help me out as I don't see where the problem lays here:

var odpowiedz = prompt ("Do you like me YES or NO OR I DO NOT KNOW?").toUpperCase();
switch(odpowiedz) {

case 'YES':
    var bezinteresownie = prompt("Just like that?").toUpperCase();
    var koniec = prompt("till the rest of your life?").toUpperCase();

    if (bezinteresownie==='YES' || koniec==='YES'){
    {console.log("I like you too!");
	}
    else {
        console.log("I am really sorry that you think like that");
        }
    break;

case 'NO':
    var powaznie=prompt("Are you serious?").toUpperCase();
    var szantaz=prompt("Has anybody forced you to say so?").toUpperCase();
    if (powaznie==='NO' && szantaz==='NO'){
    console.log("I don't like you either!");
	}
    else {
        console.log("So there is something going on!");
        }
    break;

case 'I DO NOT KNOW':

    var afraid=prompt("are you afraid to say?").toUpperCase();
    var srednio=prompt("czy to dlatego, ze lubisz mnie srednio?").toUpperCase();

    if(afraid==='YES' && srednio==='YES'){
        console.log('I do not know what to say, really');
        }

        else {
            console.log('So what is it?');
            }
            break;

default:
    console.log("You are not being truthy!");

}

Console says: SyntaxError: Unexpected token else


#2

your if condition:

 if (bezinteresownie==='YES' || koniec==='YES'){
    {console.log("I like you too!");
	}

has two opening curly brackets ({), where it needs only one


#3

You are right! thank you!