12. Functions and If / Else HELP PLEASE!


Replace this line with your code.


Please paste in your code + lesson + error..
We can only help you if you provide us with your code



what do you need help with for if/else statements?


var sleepCheck = function(numHours) {
if(numHours >= 8) {
return "You're getting plenty of sleep! Maybe even too much!";
else {
return "get some more shut eye!";

I've tried so many different things, stuck on this for hours! I get all the right answers yet it says I didn't for 5 hours


please help I'm desprate


Capital g for Get, most likely the problem, exercise is picky on correct grammar/punctuation


Hallelujah!!! Thank you so much that took e hours and multiple tries!!!!! I even spent an hour looking at replies at other posts to help me! You're the best!!!!!


that was all one big waste of time for a capital letter


Thanks again Benjnev!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!