×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

What is the correct syntax to define default values to mixin variables?

15. What is the correct syntax to define default values to mixin variables?

  1. @mixin mixin_name($variable: default_value, $variable: default_value) {properties: values/variables;}
  2. @mixin mixin_name($variable=default_value, $variable=default_value) {properties: values/variables;}
  3. @mixin mixin_name($variable-default_value, $variable-default_value) {properties: values/variables;}
  4. All of the above

Answer: A) @mixin mixin_name($variable: default_value, $variable: default_value) {properties: values/variables;}

Explanation:

The correct syntax to define default values to mixin variables is,

@mixin mixin_name($variable=default_value, $variable=default_value) {properties: values/variables;}

Example:

@mixin post($color: red, $width: 2px) {
  border: $width solid $color;
}

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.