Complete the code to get the length of the list.
$colors: (red, green, blue);
$length: [1]($colors);size() which does not exist in Sass.count() which is not a Sass function.length_of() which is invalid.The length() function returns the number of items in a list in Sass.
Complete the code to get the first item of the list.
$colors: (red, green, blue);
$first-color: [1]($colors);head() which is not a Sass function.start() or begin() which do not exist.The first() function returns the first item in a list in Sass.
Fix the error in the code to get the last item of the list.
$colors: (red, green, blue);
$last-color: [1]($colors);end() which is not a Sass function.tail() which does not exist in Sass.The correct function to get the last item in a list in Sass is last().
Complete the code to get a sublist from the second to the third item.
$colors: (red, green, blue, yellow); $sublist: [1]($colors, 2, 3);
sublist() which is not a Sass function.list_slice() or segment() which do not exist.The slice() function extracts a part of a list. The start index is 2 and end index is 3 (1-based indexing).
Fill all three blanks to join two lists into one.
$list1: (red, green); $list2: (blue, yellow); $combined: [1]($list1, [2], [3]);
append() which appends a list as a single nested item.$list1 in the second blank which is the original list.space or other separators instead of comma.The join() function adds items from one list to another. The second blank is the list to add, and the third blank is the separator comma.
