0
0
SASSmarkup~10 mins

Arithmetic operations in SASS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add two numbers in Sass.

SASS
$sum: 5 [1] 3;
Drag options to blanks, or click blank then click option'
A/
B+
C-
D*
Attempts:
3 left
💡 Hint
Common Mistakes
Using - instead of + will subtract instead of add.
Using * or / will multiply or divide, not add.
2fill in blank
medium

Complete the code to multiply two numbers in Sass.

SASS
$product: 4 [1] 6;
Drag options to blanks, or click blank then click option'
A+
B-
C*
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using + will add instead of multiply.
Using / will divide instead of multiply.
3fill in blank
hard

Fix the error in the code to subtract numbers correctly in Sass.

SASS
$difference: 10 [1] 4;
Drag options to blanks, or click blank then click option'
A/
B+
C*
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Using + will add instead of subtract.
Using * or / will multiply or divide instead of subtract.
4fill in blank
hard

Fill both blanks to calculate the remainder of division in Sass.

SASS
$remainder: 17 [1] 5 [2] 2;
Drag options to blanks, or click blank then click option'
A%
B+
C-
D*
Attempts:
3 left
💡 Hint
Common Mistakes
Using - instead of % will subtract, not find remainder.
Using * instead of + will multiply instead of add.
5fill in blank
hard

Fill all three blanks to create a complex calculation in Sass.

SASS
$result: (8 [1] 2) [2] 3 [3] 4;
Drag options to blanks, or click blank then click option'
A*
B+
C-
D%
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up operators order changes the result.
Using multiplication instead of remainder changes meaning.