Sleep debt calculator

I’m doing the sleep debt calculator practice and I don’t find where is the error that the console send me.
here you have it:

could someone help ???

The error message logs

actualSleepHours is not defined

I see that you defined it on line 40, but that seems to be encapsulated in a function, therefore it is not available outside the function body where you defined it.

Please always link the lesson and post the code here (properly formatted so it is readable).

Thanks , I found my error.
I closed the } and leave the conditional outside, and it has to be inside the {}.