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 tried to simplify as best as i could..

2 Answers

Tommy Bo
Tommy Bo
632 Points

Great solution! Here's mine. I used document.querySelector

https://w.trhou.se/kz9rrpne0k

Tommy Bo, snap with the <br> tag it looked fine without it. V.good coding... I try to limit how many variables to have, because my first attempt was about 9 variables and i thought that's not good... :-)