r/CodingHelp • • Mar 29 '21

[Javascript] First JavaScript Project, getting "Uncaught SyntaxError: Illegal Return Statement"

31 Upvotes

17 comments sorted by

View all comments

8

u/IDKSomeFuckingGuy Mar 29 '21

You may want to slow down a bit and maybe go a little smaller.

“then” doesn’t mean anything in JS

1

u/dwlakes Mar 29 '21

I see some of the body statements don't really work either.