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 Basics (Retired) Making Decisions with Conditional Statements The Conditional Challenge

Gary Calhoun
Gary Calhoun
10,317 Points

Finally I got it!! HTML / CSS / JavaScript in all its glory:)

Ok wow I had a blast with this one once I finally understood what I was doing:) Take a look at my final for this challenge and let me know what you think. I did want to do span tags but it was throwing error in the console I wanted to assign the colors bronze. silver, and gold.

http://codepen.io/nufftalon/pen/qdKzjP

Colin Marshall
Colin Marshall
32,861 Points

Nice job! I was shocked to learn that PBR doesn't stand for Pabst Blue Ribbon ;)

3 Answers

If you want to add span tags, presumably with a class attribute, then you just need to either escape the double quotes or use single quotes (because you use double quotes in your document.write function calls).

Here's mine: http://codepen.io/iainsimmons/pen/vNBpKr

jason chan
jason chan
31,009 Points

I'm impressed with your javascript. JS is my worst language. LOLs.

Gary Calhoun
Gary Calhoun
10,317 Points

Colin Marshall thanks haha no its a 3d challenge not a beer challenge lol thats next week.

Jason Chan thanks it was hard for me but I got it I actually kind of took to javascript better then I thought I would