This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by David Mills
over 8 years

Plz HELP!!!

My codes are always saying “Syntax Error: ‘return’ outside function” I don’t understand, please help.

Answer 5611a51d3e0ec813e50002e2

0 votes

Permalink

Have you checked the indentation? it needs to be indented 4 spaces from the function otherwise it will not be included

points
Submitted by garyos
over 8 years

1 comments

redorubyagain over 8 years

^ This is the reason. i know sometimes the errors are confusing and complicated, but try not to be scared of the error messages and actually read them. They are trying to help. Don’t worry, I do it sometimes myself.