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?

  1. get(map, key)
  2. map-element(map, key)
  3. map-value(map, key)
  4. 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

Comments and Discussions!

Load comments ↻






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