4/6 Switch


#1

What am I doing wrong here?

var user = prompt("What's your name?, Enter a member of 'Scwod' here.").toLowerCase();

switch(user)
    case 'fraser':
        console.log("Nice Name!");
            break;
    case 'jed':
        console.log("You're probably fat...");
            break;
    case 'daniel':
        console.log("You're probably a mole.");
            break;
    case 'tjninjarobot':
        console.log("Made by TJ Cool Computers???");
            break;
    default:
        console.log("Do I know you? You need to input a member of 'Scwod', Jed, Fraser, Daniel or TJNinjaRobot.");
        break;
    }

I get error: "SyntaxError: Unexpected token case"


#2

Solved

switch(user) {