Getting a SyntaxError for else if statement. Why?

const getSleepHours = day => {

switch (day) {

    

    case 'Monday':

      return 8

    break;

    

    case 'Tuesday':

      return 7

    break;

    

    case 'Wednesday':

      return 8

    break;

    

    case 'Thursday':

      return 5

    break;

    

    case 'Friday':

      return 8

    break;

    

    case 'Saturday':

      return 7

    break;

    

    case 'Sunday':

      return 8

    break;

    

  default:

    return 'Error!'

}

};

const getActualSleepHours = () => 

  getSleepHours('Monday') + 

  getSleepHours('Tuesday') + 

  getSleepHours('Wednesday') + 

  getSleepHours('Thursday') + 

  getSleepHours('Friday') + 

  getSleepHours('Saturday') + 

  getSleepHours('Sunday');

console.log(getSleepHours('Monday'));

console.log(getActualSleepHours());

const getIdealSleepHours = () => {

  let idealHours = 8;

  return idealHours * 7;

};

const calculateSleepDebt = () => {

  const actualSleepHours = getActualSleepHours();

  const idealSleepHours = getIdealSleepHours();

if (actualSleepHours === idealSleepHours);{   

    console.log('You got a good amount if sleep!');

} else if (actualSleepHours > idealSleepHours); {

    console.log('Woah! Calm down sleepy boiiiii!');

} else if (actualSleepHours < idealSleepHours); { 

    console.log('Get some rest');

} else {

    console.log("Error! Check the code.");

  }

};

calculateSleepDebt();

incorrect use of semi-colons.

the semi-colon on this line:

if (actualSleepHours === idealSleepHours);{ 

interrupts the if clause. Same applies to all your else if clauses

I could cry with happiness . Thank you for this explanation! Good lesson to learn!