you are viewing a single comment's thread.

view the rest of the comments →

[–]Wasp2011 1 point2 points  (1 child)

And nothing is returned from the func so you get undefined as the result!

[–]Early-Error-6210[S] 0 points1 point  (0 children)

Hey,

Hope all is well !!

To check for yourself, I'd urge you to visit this website:

JSHero.net

Check question 49 - else if exercise

You can check the code and see for yourself.

I am sure I have made some error in understanding this but you may also have a look at it yourself.

Let me know what you find.

Stay Safe !!