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

CSS Sass Basics (retired) Advanced Sass Concepts Interpolating and if/else

David Richied
David Richied
18,057 Points

Is the second part of code challenge in "Interpolating and If/Else" in Advanced Sass Concepts connected to first part?

This code challenge just really confused me. The first part of the code challenge asked me to create a mixin called cars with two variables: $color and $make. That was easy enough. But the second part asked me to create an if/else statement underneath the mixin that would change the color of a link to a certain color depending on what the $time variable was. Were these two parts connected? If they are not (which I'm guessing they are not), I think it should be made more explicit. I think it was just that the two "color" variables had me mixed up, but I'd still like to see it changed for the sake of beginners like me.