0
0
SASSmarkup~5 mins

Built-in map functions in SASS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a map in Sass?
A map in Sass is a collection of key-value pairs, similar to a dictionary or object, used to store related data together.
Click to reveal answer
beginner
How do you create a map in Sass?
You create a map by using parentheses with key-value pairs separated by colons and commas, like: (color: red, size: 10px).
Click to reveal answer
beginner
What does the map-get() function do in Sass?
The map-get() function retrieves the value associated with a given key from a map.
Click to reveal answer
intermediate
How can you add or update a key-value pair in a Sass map?
Use the map-merge() function to add or update key-value pairs by merging two maps together.
Click to reveal answer
beginner
What does the map-keys() function return?
The map-keys() function returns a list of all the keys in a Sass map.
Click to reveal answer
Which Sass function retrieves a value from a map by its key?
Amap-get()
Bmap-keys()
Cmap-merge()
Dmap-remove()
What does map-merge() do in Sass?
ACombines two maps into one
BDeletes a key from a map
CReturns all keys in a map
DRetrieves a value by key
If you want a list of all keys in a Sass map, which function do you use?
Amap-values()
Bmap-get()
Cmap-keys()
Dmap-merge()
How do you create a map with keys 'font' and 'size' in Sass?
A<font: Arial, size: 12px>
B[font: Arial, size: 12px]
C{font: Arial, size: 12px}
D(font: Arial, size: 12px)
Which function removes a key from a Sass map?
Amap-pop()
Bmap-delete()
Cmap-erase()
Dmap-remove()
Explain how to retrieve and update values in a Sass map using built-in functions.
Think about how you look up and change information in a dictionary.
You got /2 concepts.
    Describe how you can list all keys or values from a Sass map and why this might be useful.
    Imagine checking all the labels or items in a box.
    You got /3 concepts.