Problem with 9/11


#1

https://www.codecademy.com/courses/learn-javascript-control-flow/lessons/control-flow/exercises/switch?action=lesson_resume&course_redirect=introduction-to-javascript

Error:
Did you write ‘full’ as a case?



let moonPhase = 'full'
	switch (moonPhase) {
    case 'full' :
      console.log('Howl!');
      break;
    case 'mostly full' :
      console.log('Arms and legs are getting hairier.')
      break;
    case 'mostly new' :
      console.log('Back on two feet.');
      break;
}
 



#2

@designsurfer88409 at a glance you are missing a few semicolons after your statements, this is step one of switch statements challenge, go through it carefully, it doesnt hurt to have an extra pair of eyes for code review :wink:


#4

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