Werewolf.js - Code correct, not able to move on


#1


I'm stuck at the Werewolf.js activity, even though my code is correct, and the console is running all the different moon phases when I change the variable value accordingly. I've tried it the way I have pasted it here, and also just in the original 'var' line. It registers my code as being correct but it won't register me having tried different phases and therefore completing the activity.
Super frustrating because it won't let me move on in the Control Flow lesson. If anyone has a fix, or can pinpoint something wrong please let me know!


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


#2

If it registers your code correct then you should be able to proceed to the next step.
I


#3

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