Hi all - apologies if a similar question has been posted here previously. Just wanted to ask if anybody can see where I might have gone wrong with the sleep debt calculator?
It all seems to run fine but whatever numbers I use for getActualSleepHours, whenever I start the program by calling the calculateSleepDebt() function, it only returns:
if (actualSleepHours = idealSleepHours) {
console.log('You had the perfect amount of sleep!');
The two numbers clearly do not add up however, so I’m not sure why this is the only line that is logged.
Any help appreciated.
By the way, this is my first time posting here, so apologies if I haven’t included enough information/links