Errors showing but the section is nowhere to be found


#1

I’m trying to figure out what is wrong with my code according to this error that keeps showing up:
/home/ccuser/workspace/javascript_101_Unit_3/Unit_3/sleepDebtCalculator.js:47
});
** ^**
SyntaxError: Unexpected token )

However, there is nowhere in my code that has that kind of symbol. My code currently looks like this:

const getSleepHours = day => {
  if (day === "monday") {
    return 8;
  }
  else if (day === 'tuesday') {
    return 4;
  }
  else if (day === 'wednesday') {
    return 5;
  }
  else if (day === 'thursday') {
    return 10;
  }
  else if (day === 'friday') {
    return 7;
  }
  else if (day === 'saturday') {
    return 2;
  }
  else if (day === 'sunday') {
    return 12;
  }

const getActualSleepHours = () => {
	getSleepHours('monday') +
  getSleepHours('tuesday') +
  getSleepHours('wednessday') +
  getSleepHours('thursday') +
  getSleepHours('friday') +
  getSleepHours('saturday') +
  getSleepHours('sunday');
  
  return getActualSleepHours;
}
              
const getIdealSleepHours = () => {
	const idealHours = 10;
  console.log(idealHours);
  
 return idealHours * 7;
};
  
  getIdealSleepHours();

Even when I type out the code directly from the hints, the error messages keep popping up and I’m not sure why (in some cases it will tell me the syntax is incorrect on a line I’ve not written anything on. Any thoughts or tips would be extremely helpful!


#2

where is the } to close of your getSleepHours function?