Home »
MCQs »
SASS MCQs
What is the correct syntax to call a mixin with two variables in a class?
13. What is the correct syntax to call a mixin with two variables in a class?
- .class_name{ @include mixin_name(variabl1, variable2);}
- .class_name{ @include mixin_name(variabl1, variable2);}
- .class_name{ @include mixin_name(variabl1, variable2);}
- .class_name{ @include mixin_name(variabl1, variable2);}
Answer: A) .class_name{ @include mixin_name(variabl1, variable2);}
Explanation:
The correct syntax to call a mixin in a class is,
.class_name{ @include mixin_name(variabl1, variable2);}
Example:
.post{
@include border1(red, 1px);
}