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

JavaScript JavaScript Foundations Variables Hoisting

Best Practice ...,

Wow, I have no idea what is is being ask to accomplish in this challenge!

1 Answer

Andrew McCormick
Andrew McCormick
17,730 Points

Wesley. Watch the video before that http://teamtreehouse.com/library/javascript-foundations/variables/hoisting from about the 5 minute to 6minute mark. There, Jim describes what is the best way to declare variables in a function in light of Javascript's hoisting.

In the challenge, it is asking you to rearrange the variable declaration to fit withing what is best practices for declaring variables.