Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Ryan Codes
14,888 Pointshow to organize jquery codes
what is the best way to organize multiple jquery functions?
1 Answer
Shane Oliver
19,977 PointsIt depends on the scope of your project. If it's small you can place functions anywhere in your js file - it's nice to have constants and variables at the top and then comment all your functions.
If you are working on a large scale you will need to look at dependency management and compartmentilizing your code