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?

  1. compare(num1, num2)
  2. equal(num1, num2)
  3. checkequal(num1, num2)
  4. 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

Comments and Discussions!

Load comments ↻






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