SWITCH statement

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

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

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
The Output is not the exact answer! Pls check my code:

```

var moonPhase = ‘full’;
switch(moonPhase){
case’full’:
console.log(‘Howwwlll!!’);
break;
case’mostly full’:
console.log(Arms and legs are getting hairier);
break;
case’mostly new’:
console.log(‘Back on two feet’);
break;
default:
console.log(‘Invalid moon phase’);
break;
}

<do not remove the three backticks above>

console.log(Arms and legs are getting hairier);

Now compare it to the other console.log you wrote.
What do you notice?

2 Likes

Yeah!! I forgot to put them on…>> ‘.Arms and legs…’ <<
Thx a lot!!
:smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.