Home »
MCQs »
SASS MCQs
Which Sass function is used to check whether two values are comparable or not?
28. Which Sass function is used to check whether two values are comparable or not?
- compare(num1, num2)
- equal(num1, num2)
- checkequal(num1, num2)
- comparable(num1, num2)
Answer: D) comparable(num1, num2)
Explanation:
The comparable(num1, num2) function is used to check whether two values are comparable or not.
Example:
comparable(35px, 15px)
Result: true
comparable(201mm, 108cm)
Result: true
comparable(15px, 1.5em)
Result: false