Stuck on this code I think im doing it right


#1

`let moonPhase = ‘full’;
let isFoogyNight = true;

if(moonPhase === ‘full’){
console.log(Howl!);
} else if(moonPhase === ‘mostly full’){
console.log(Arms and legs are getting hairier);}
else if (moonPhase === ‘mostly new’){
console.log(Back on two feet);
} else {
console.log(Invalid moon phase);
}
`

stuck on Let’s say the werewolf can only become its wolf form when there is a full moon and a it’s a foggy night.

We already have a moonPhase variable, so let’s start with making a isFoggyNight variable set equal to true .

Im confused I thought I created the variable properly and set it equal to true but I get this error

Did you set the isFoggyNight variable equal to a boolean?


#2

please check your spelling/check for typos


#3

Thank you so much so case sensitive !!! lol


#4

Foogy vs Foggy has nothing to do with case sensitivity.


#5

yeah I know lol user error thanks man


#6

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