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

Slices · MCQQuestion link ↗

Which built-in function appends an element to a slice?

Choose one answer
Answer & explanation

Answer: append

`append(slice, value)` returns the updated slice and may allocate a larger backing array.