12/13 Introductions and functions Javascript BIG PROBLEM


#1

Hi I need help for this lesson please I did everything correctly but they told me that something is wrong. I'm french so please just look at the positions or characters and forget the french words I'm sure it's okay about this because I'm going to loose myself with this. The error message tell me it seems sleepCheck doesn't return when numHours is about 10. WHAT THE ■■■■ !:

var verifSommeil = function (nombreHeures)
{
if (nombreHeures >= 8)
{
return "Vous dormez beaucoup ! Même peut être trop !";
}
else
{
return "Faites donc une p'tite sieste !";
}
};

console.log(verifSommeil(10));
console.log(verifSommeil(5));
console.log(verifSommeil(8));

I also did without console.log --> verifSommeil(10); verifSommeil(5); verifSommeil(8); and even verifSommeil(10, 5, 8); or console.log(verifSommeil(10, 5, 8)); PLEASE HELP MEEE !

Thank you for your advances (and sorry for my bad english)

PS : I know there's a lot of others topics about this but I rode all of them and no answer correspond.


#2

can you please give me the link of this lesson?


#3

Yes of course !

https://www.codecademy.com/fr/courses/javascript-beginner-fr-FR-rpcse/2/4?curriculum_id=5355c2b7516bcbd912000008

However, inside the console, there is in first "you sleep a lot" after "need a nap" and to finish "you sleep a lot" again.


#4

write it

Vous dormez beaucoup ! Même peut-être trop !

instead of

Vous dormez beaucoup ! Même peut être trop !


#5

I love you. My god, I discover a capricious face of codecademy.
(Thanks a lot)


#6

most welcome :slight_smile:

and check it how to use the codecademy forums


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.