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 trialAnastasia Lanz
9,399 PointsSpeeding up Workflow with Sass - Stage 2 and 3
For these stages, I can keep the same code and it will still pass. I wrote this for example and it passed for both Stage 2 and 3 which shouldn't be correct:
div {
font-size:5px *2;
}
It should have been something like this but I am not 100% sure:
div {
font-size:double(5px);
}
2 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Anastasia,
I didn't track down the link to this challenge so I'm going off memory here.
Was task 1 asking you to create the double
function?
And then I think in task 2 you were to use it to arrive at 10px rather than doing the multiplication.
I believe this challenge had multiple answers that would pass.
You could even pass task 3 with font-size: 10px;
if I remember right.
I think what the challenge wanted you to get is not to over-complicate things. If you need something to be 10px then maybe just use 10px. No need to calculate it.
Anastasia Lanz
9,399 PointsYes, it was using the double function and then part 2 asked to refactor div { font-size:5px * 2; } using the double function. That makes sense as to why a few would pass. Thanks!