Functions & if/else.. please need your help!


Please I need your help!!! I really don't know what's wrong with my code. Why it is error?



Try adding an exclamation mark after "much". It can sometimes be a pain, but it's sentence specific.

Hope I helped :slight_smile:


Thanks for your help. But it still doesn't work, and having the same error.


Have you tried wrapping your call in a console.log?

If it's not that, the only other thing I can think of is it looks like you indented / spaced the first return's statement weirdly. ie instead of it picking up at the start of line 7.2, it starts under the start of the statement on like 7.1.


Thank you:slight_smile: You're right, because I indented the line 6 of the return statement. When I removed the indent it finally worked. :thumbsup:


Glad I could help. I don't mean to hassle, but could you mark my answer as the solution? Thanks.


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