Beginner
Go (Golang)
Q37 / 100
What does append() return?
Correct! Well done.
Incorrect.
The correct answer is B) A new slice with the appended elements (must be reassigned)
B
Correct Answer
A new slice with the appended elements (must be reassigned)
Explanation
s = append(s, 1, 2, 3) returns a potentially new slice (if reallocation occurred). Always use the return value.
Progress
37/100