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?
✗ Incorrect
map-get() is used to get the value for a specific key in a Sass map.
What does map-merge() do in Sass?
✗ Incorrect
map-merge() combines two maps, adding or updating key-value pairs.
If you want a list of all keys in a Sass map, which function do you use?
✗ Incorrect
map-keys() returns a list of all keys in the map.
How do you create a map with keys 'font' and 'size' in Sass?
✗ Incorrect
Sass maps use parentheses with key: value pairs separated by commas.
Which function removes a key from a Sass map?
✗ Incorrect
map-delete() deletes a key and its value from a Sass map.
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.