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


#1

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


`


#2

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

Hope I helped :slight_smile:


#3

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


#4

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.


#5

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:


#6

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


#7

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