PRACTICE / UNDERSTAND / REPEAT
Go practice question
Practice slices with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
1 questionAnswers explainedFree · no login
Try this question
Which built-in function appends an element to a slice?
Answer & explanation
Answer: append
`append(slice, value)` returns the updated slice and may allocate a larger backing array.