Home »
MCQs »
SASS MCQs
Which Sass function is used to get the list of all values in map?
44. Which Sass function is used to get the list of all values in map?
- values(map)
- map-values(map)
- map-elements(map)
- elements(map)
Answer: B) map-values(map)
Explanation:
The map-values(map) function is used to get the list of all values in map.
Example:
$font-sizes: ("normal": 14px, "larger": 20px, "largest": 32px)
map-get($font-sizes, " largest ")
Result: 14px, 20px, 32px