Help me out i cannot fogure out mistake!


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


you missed { for else if


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