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 trialIan Barrett
8,439 PointsArrays. Stage 4 Challenge 2 of 2
Someone please let me know what im doing wrong. Ive done this on my text editor and it seems to display fine when i console.log(saying2). Been reviewing past lessons for an hour and a half and im stuck. saying2.sort (function(a,b) { return a.length > b.length}); Thanks
2 Answers
Ian Barrett
8,439 Pointsi got it. Use a - instead of>.
All good. I dont know why it took me so long to try that.
Ian Barrett
8,439 Pointsi got it. Use a - instead of>.
All good. I dont know why it took me so long to try that.