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 Solution

Isaac Hughes
Isaac Hughes
3,711 Points

Code feedback

I was wondering if the way I set this up would be acceptable https://w.trhou.se/oqgze7egur

1 Answer

Hi Isaac

This looks like an acceptable piece of work, nice quiz... i actually went ahead and took the quiz, keeping my maths ticking!

What you could do to improve is:

Have a JavaScript folder - when you make bigger projects its good to keep a clean folder structure, the same way you have your css in a folder.

DRY - See if you can reduce your code with the DRY acronym later on in the course by coming back to this when you learn about functions, arrays and loops

Good luck!

Isaac Hughes
Isaac Hughes
3,711 Points

Sweet, thanks for tips Liam. I think that is my biggest issue when programming is repeating myself constantly.