The <code>@for</code> directive adds styles in a loop, very similar to a <code>for</code> loop in JavaScript.
<code>@for</code> is used in two ways: "start through end" or "start to end". The main difference is that "start to end" <em>excludes</em> the end number, and "start through end" <em>includes</em> the end number.
Here's a start <b>through</b> end example:
<blockquote>@for $i from 1 through 12 {<br> .col-#{$i} { width: 100%/12 * $i; }<br>}</blockquote>
The <code>#{$i}</code> part is the syntax to combine a variable (<code>i</code>) with text to make a string. When the Sass file is converted to CSS, it looks like this:
This is a powerful way to create a grid layout. Now you have twelve options for column widths available as CSS classes.
</section>
## Instructions
<section id='instructions'>
Write a <code>@for</code> directive that takes a variable <code>$j</code> that goes from 1 <b>to</b> 6.
It should create 5 classes called <code>.text-1</code> to <code>.text-5</code> where each has a <code>font-size</code> set to 10px multiplied by the index.
</section>
## Tests
<section id='tests'>
```yml
- text: Your code should use the <code>@for</code> directive.
testString: 'assert($(''.text-1'').css(''font-size'') == ''10px'', ''Your <code>.text-1</code> class should have a <code>font-size</code> of 10px.'');'
testString: 'assert($(''.text-2'').css(''font-size'') == ''20px'', ''Your <code>.text-2</code> class should have a <code>font-size</code> of 20px.'');'
testString: 'assert($(''.text-3'').css(''font-size'') == ''30px'', ''Your <code>.text-3</code> class should have a <code>font-size</code> of 30px.'');'
testString: 'assert($(''.text-4'').css(''font-size'') == ''40px'', ''Your <code>.text-4</code> class should have a <code>font-size</code> of 40px.'');'
testString: 'assert($(''.text-5'').css(''font-size'') == ''50px'', ''Your <code>.text-5</code> class should have a <code>font-size</code> of 50px.'');'