JS - 7. Switch statements


#1

When I get to the DEFAULT code it marks me error !, I do not know how to solve it, I leave the link, help!

Https://www.codecademy.com/courses/learn-javascript/lessons/control-flow/exercises/switch?action=lesson_resume
var moonPhase = ‘full’;

switch (moonPhase) {
case ‘full’:
console.log(‘Howwlll!’);
brake;
case ‘mostly full’:
console.log(‘Arms and legs are getting hairier’);
brake;
case ‘mostly new’:
console.log(‘Back on two feet’);
brake;
default:
console.log(‘Invalid moon phase’);
brake;
}


#2

it’s break not brake


#3

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