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 The Solution

I solved it in another way

This is how i solved it https://teamtreehouse.com/workspaces/40881829

Is it ok?

If you want to share your workspace you will need to create a snapshot. It is the camera icon in the upper right corner.

1 Answer

Steven Parker
Steven Parker
231,269 Points

Good job! :+1:

You will find many opportunities to exercise creative thinking as you progress to more complex programs. There's rarely just one "right" way to program anything. Besides achieving the objective, things to consider are readability/maintainability, efficiency, and conciseness (usually in that order). Anytime you can cover them all, you have a great solution.

Happy coding!

Thanks