Which of the following directive facilitates you to generate styles in a loop?

A)  @if
B)  @for
C)  @each
D)  @while

Correct Answer :   @for


Explanation : The @for directive facilitates us to generate styles in a loop. The @for directive comes in two forms. The first option is @for $var from <start> through <end> which starts at <start> and loops "through" each iteration and ends at <end>. The second option is @for $var from <start> to <end> which starts at <start> and loops through each iteration "to" <end> and stops. Once the directive reaches the <end>, it stops the looping process and does not evaluate the loop that one last time.