Home »
MCQs »
SASS MCQs
What is the correct syntax to pass two variables in a mixin?
12. What is the correct syntax to pass two variables in a mixin?
- @mixin mixin_name(@include $variable1, @include $variable2) { properties: values;}
- @mixin mixin_name($variable1+$variable2) { properties: values;}
- @mixin mixin_name($variable1, $variable2) { properties: values;}
- @import @mixin mixin_name($variable1, $variable2) { properties: values;}
Answer: C) @mixin mixin_name($variable1, $variable2) { properties: values;}
Explanation:
The correct syntax to pass two variables in a mixin is,
@mixin mixin_name($variable1, $variable2) { properties:values;}