Complete the code to get the length of the list.
$colors: red, green, blue;
$list-length: list.[1]($colors);The length function returns how many items are in a list.
Complete the code to add an item to the end of the list.
$fruits: apple, banana;
$new-list: list.[1]($fruits, orange);The append function adds a new item to the end of a list.
Fix the error in the code to get the second item from the list.
$shapes: circle, square, triangle; $second-item: list.[1]($shapes, 2);
The nth function returns the item at a specific position in the list.
Fill both blanks to remove the first item from the list and get the new list.
$numbers: 1, 2, 3, 4; $new-numbers: list.[1]($numbers, [2]);
The remove function deletes the first occurrence of a given value from the list. Here, value 1 removes the first item.
Fill all three blanks to create a new list with the second item replaced by 'yellow'.
$colors: red, green, blue; $new-colors: list.[1]($colors, [2], [3]);
The set-nth function replaces the item at a given position. Here, it replaces the second item with 'yellow'.
