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
Corey Baker
4,890 PointsJavaScript Foundations Arrays Methods Part 2 - Code Challenge
Just thought this is the best error I have saw on Treehouse:
Ha.
2 Answers
Rodrigo Muñoz
Courses Plus Student 20,171 PointsYou missed to declare the array with the name "saying" at the beginning and then include the data inside the array.
Edd Figueiredo
2,268 PointsHey guys, I just posted a discussion on the same topic... I don't realized yet the solution for the second part of the second challenge ... I could use some light here, cause I'm stuck.
The challenge tip was to use a 'length' property inside the function, to organize the array beginning by the shortest string... I've tried that, the result was the array beginning by the shortest string, but the challenge was not satisfied by just that.

Corey Baker
4,890 PointsCorey Baker
4,890 PointsThanks Rodrigo, I was actually not confused on how to solve it. I was just pointing out a bug....
Either one of the above work, but the 2nd method requires less code. Also, it is probably what they're actually looking for.....