Ask coding questions

← Back to all posts
I'm facing 'return' outside function problem.
indrakshibasu (1)

What to do now? Please help me

Comments
hotnewtop
Coder100 (19280)

Hello, so the problem is here:

So basically, you forgot to indent.
The fixed code is:

Hope this helps!
Remember: Indentation is key!

mwilki7 (1136)

There is a return statement outside a function.
Is:

supposed to be inside the getRatio function?