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 trialAshley Abid
863 PointsHow should I write the code for the crowns?
This was my attempt for the quiz challenge. Everything seems to work fine except for the part when it comes to the crown awarding part. What's wrong with my conditional statements for the crowns? Thank you for all your help...lol whoever can help gets their own digital crown too! :D
https://w.trhou.se/a7gwilxcmn (The code is under quiz.js)
3 Answers
miikis
44,957 PointsHey Ashley, Everything works like it seems it should for me. What problem are you having exactly?
Ben Farr
3,834 PointsYou have two quiz.js files in the link. Which file do you want us to look at?
Ashley Abid
863 PointsThe lowercase "quiz.js" one please! :D
Ashley Abid
863 PointsOh, I see, everything's working now! I was using Google Chrome but I guess it was a glitch before. And haha,4 out of 5, not too bad! I'll give you an honorary gold crown for all your help. Thank you! ^_^
Ashley Abid
863 PointsAshley Abid
863 PointsThank you for looking into this! :) And really, I've been trying to get to the part where I tell you what type of crown you get depending on your score (bronze, silver, gold, or no crown at all) and that doesn't show up at all in the alert dialogue boxes. Does it work for you or am I still doing something wrong?
Ashley Abid
863 PointsAshley Abid
863 PointsThank you for looking into this! :) And really, I've been trying to get to the part where I tell you what type of crown you get depending on your score (bronze, silver, gold, or no crown at all) and that doesn't show up at all in the alert dialogue boxes. Does it work for you or am I still doing something wrong?
miikis
44,957 Pointsmiikis
44,957 PointsYeah, I tested getting all the answers right, all the answers wrong and even the first run-through (got 4 out of 5, couldn't remember the weapon Sokka had haha) everything worked as expected. What browser are you using? I was using Safari.