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 trialMark Crimi
4,653 PointsMethods Part 2 Challenge 2
Can anybody assist with the Methods Part 2 task 2 Challenge? I don't think I understand the question. Thanks
2 Answers
Dan Mirda
3,992 PointsThe question asks you to sort the array by using the sort method. The sort method takes a function as a parameter. This function actually tells the sort method how to compare any two elements in the array. The question also gave the hint to use the length property of strings to your advantage.
Mark Crimi
4,653 PointsThank you Dan.
Dan Mirda
3,992 PointsGlad I could help :)