Home »
MCQs »
SASS MCQs
Which Sass function is used to get the value for the specified key in the map?
43. Which Sass function is used to get the value for the specified key in the map?
- get(map, key)
- map-element(map, key)
- map-value(map, key)
- map-get(map, key)
Answer: D) map-get(map, key)
Explanation:
The nth(list, n) function is used to get the value for the specified key in the map.
Example:
$font-sizes: ("normal": 14px, "larger": 20px, "largest": 32px)
map-get($font-sizes, " largest ")
Result: 32px