5/6 what have i done wrong?


#1

Yo, I was trying to complete this level, but i think i got myself in deep water. I have been trying to solve it for some time, but i think it is out of my abilities so far and now i'm just kinda curios what i did wrong. So thank you if you can solve this puzzle :')
anyway here is the code:

var user = prompt("favourite color?").toUpperCase()

switch(user)
{
    case 'BLUE':
        var light = prompt("light blue or just blue? or none")
        if (light === "NONE")
        {
            var dark = prompt ("then dark blue? yes or no!")
            if (dark === 'YES')
            {
                console.log("ooh, thats pretty kewl!");
            }
            else
            {
                console.log("excuse me?");
            }
        }
        else if (light === 'LIGHTBLUE' || light === 'JUST BLUE')
        {
        console.log("noice color");
        }
        break;
        
    case 'YELLOW':
        var light = prompt("Light yellow? yes or no")
        var justYellow = prompt("just yellow? yes or no")
        
        if (light === 'YES' && justYellow === 'YES')
        {
        console.log("they are both nice ya!");
        }
        else if (!(light === 'YES' && justYellow 'YES'))
        {
        console.log("then you must like Dark yellow!");
        }
        break;
    case 'RED':
        console.log("wow!");
        break;
    default:
        console.log("wow that color i don't know :)");
};

#2

In one elseif where you check if light is yes and justYellow is yes you are missing equal signs.


#3

Your default case doesn't break as well.


#4

Ty!
guess i didnt try hard enough x.x