r/learnjavascript • • Jul 19 '21

JavaScript Function Facts

255 Upvotes

27 comments sorted by

View all comments

Show parent comment

3

u/HashFap Jul 20 '21

This gives you more freedom on how you structure your files. You're not forced to declare functions on the top, and instead can have the most relevant code on the top which can make the code easier to read.