Complete the code to define a function named double that takes one parameter n.
@function double($n) {
@return $n [1] 2;
}The function multiplies the parameter $n by 2 using the * operator.
Complete the code to call the function double with argument 5.
$result: double([1]);n instead of a value.double as argument.To call the function with the number 5, pass 5 as the argument.
Fix the error in the function by completing the missing operator to subtract 1 from $x.
@function decrease($x) {
@return $x [1] 1;
}The function should subtract 1 from $x, so the operator is -.
Fill the blank to create a function scale that multiplies $value by $factor.
@function scale($value, $factor) {
@return $value [1] $factor;
}The function multiplies $value by $factor using the * operator.
Fill both blanks to create a function adjust that adds $offset to $base and then divides by $divider.
@function adjust($base, $offset, $divider) {
@return ($base [1] $offset) [2] $divider;
}The function adds $offset to $base using +, then divides the result by $divider using /.
