Lesson no.4 switch


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

```

var user = prompt(“How are you?”).toLowerCase();

switch(user) {
case ‘fine’:
console.log(“Okay…”);
break;
case ‘okay’:
console.log(“So what happened?”);
break;
case ‘nice’:
console.log(“Yep got it!”);
break;
default:
console.log(“Whatever!”);
}

<do not remove the three backticks above>

#2

Looks like you edited it just now. Did you found the answer?


#3

Yes I found the solution!