Hello Folks,
I was learning Sass from FCC. I was trying to write the following piece of code for “@while”,
$index:1;
@while $index<=10{
.text-#{$index}{
font-size:$index * 5;
}
$index:$index+1;
}
But couldn’t write from FCC page as it seems to interpret at every line. So whenever, I was halfway till my code as below,
$index:1;
@while $index<=10{}
the browser is hanging and I had to close FCC tab and reopen. The reason I feel, since I didn’t give yet the $index:$index+1 line so, it is interpreted as an infinite loop where $index<=10 is always true as it is not incremented yet.
The workaround I did, is, I wrote down the complete code in a separate text editor and pasted in FCC and it worked.
Anybody faced this ? May be we need moderator’s attention.
Cheers…