Complete the code to declare a global variable in Sass.
$color: [1];The variable $color is assigned the value blue globally.
Complete the code to override a global variable inside a Sass mixin locally.
@mixin theme { $color: [1]; .button { color: $color; } }The variable $color is locally set to red inside the mixin, overriding the global value.
Fix the error in the code by correctly updating the global variable inside a Sass function.
@function update-color() { $color: [1] !global; @return $color; }!global flag.The !global flag updates the global $color variable to green inside the function.
Fill both blanks to create a local variable and use the global variable inside a Sass rule.
.header { $local-color: [1]; color: $[2]; }The local variable $local-color is set to red, and the global $color is accessed by filling color to produce color: $color;.
Fill all three blanks to define a global variable, override it locally, and then update the global variable inside a mixin.
$color: [1]; @mixin change-color() { $color: [2]; $color: [3] !global; }
!global when updating the global variable.The global variable $color is first set to blue, then locally overridden to red, and finally updated globally to green inside the mixin using !global.