Help me out i cannot fogure out mistake!


#1

var moonPhase = 'full';
if(moonPhase === 'full'){
console.log('Howwwwlll!!');
}
else if(moonPhase === 'mostly full')
console.log('Arms and legs are fetting hairier');}
else if (moonPhase === 'mostly new')
console.log('Back on two feet');}
else{
console.log('Invalid moon phase')
}


#2

you missed { for else if


#3

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