CoderX
August 9, 2018, 11:55am
1
Tell us what’s happening:
test doesntt passing
Your code so far
<style type='text/sass'>
@for $j from 1 through 6 {
.text-#{$j} {font-size:10px*$j;}
}
</style>
<p class="text-1">Hello</p>
<p class="text-2">Hello</p>
<p class="text-3">Hello</p>
<p class="text-4">Hello</p>
<p class="text-5">Hello</p>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/use-for-to-create-a-sass-loop
@for is used in two ways: “start through end” or “start to end”. The main difference is that "start to end" excludes the end number
, and "start through end" includes the end number.
You have done “start through end”, therefore you are including 6 too, replace 6 by 5 in your @for
, since they ask to create only 5 classes
CoderX
August 9, 2018, 12:10pm
3
i replaced but it still did,nt work
IAmRC1
August 9, 2018, 12:13pm
4
It wont work and neither do the next 3 challenges after it because its a bug and it still needs to be fixed by fcc.
1 Like
Yep it seems to be a bug, it seems to be browser dependant, but i’m able to pass it when i tried
And some feel this way,
opened 06:07AM - 11 Jul 18 UTC
closed 07:37AM - 06 Dec 18 UTC
Describe your problem and - if possible - how to reproduce it
The test will only accept:
@for $j from 1 through 5...
CoderX
August 9, 2018, 1:39pm
6
i think let us wait for the bugs to be fixed.