I can’t get the calculateSleepDebt function to work.
const calculateSleepDebt = () => {
const actualSleepHours = getAcutalSleepHours();
const idealSleepHours = getIdealSleepHours();
if(acutalSleepHours === idealSleepHours) { console.log(“You got the perfect amount of sleep!”);
}
else if(acutalSleepHours > idealSleepHours){ console.log(“You got more sleep than needed.”)}
else if(acutalSleepHours < idealSleepHours){ console.log(“You should get some rest.”)}
else{ console.log(“Error! Something is wrong with your code.”)
}
};
calculateSleepDebt();