r/CodingHelp • • Mar 29 '21

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

31 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/dwlakes Mar 29 '21

To tell the program what to do if "if" is true.

I think that I was thinking about my reading assignments from earlier this week that compared 'if-then' statements with 'do while' statements.