Complete the code to create a list of colors.
$colors: ([1]);The correct way to define a list in Sass is by separating values with commas inside parentheses.
Complete the code to get the length of the list.
$length: length([1]);The length() function takes a list variable as input. The list variable here is $colors.
Fix the error in the code to get the first item of the list.
$first-color: nth([1], 1);
The nth() function requires the list variable with the dollar sign. So $colors is correct.
Fill both blanks to add a new color to the list.
$new-colors: append([1], [2]);
The append() function adds a new item to the list. The first blank is the original list $colors, and the second blank is the new color yellow.
Fill all three blanks to create a list of font sizes and get the last size.
$font-sizes: ([1], [2], [3]); $last-size: nth($font-sizes, length($font-sizes));
The list $font-sizes is created with three sizes: 18px, 14px, and 16px. The nth() function then gets the last item by using the length of the list.