12 Has anyone got a solution for the IF line? Thanks


#1


#2

Add an opening brace { to the end of your first line, then put a closing } at the end, before the console.log

You also need to call console.log on 5 hours and 8 hours :slightly_smiling:


#3

Don't console.log the call for the function.
Instead of:
console.log(sleepCheck(10))
Do:
sleepCheck(10)
That 's my answer, at least.


#4

No @benjnev is correct at least error are the missing {} that should wrap the function body. Using console.log is perfectly fine and it would even be necessary if you'd have more than one function call as the default echo shows only the last value in your code.