Junior — Senior
What result will the program output to the console (example 9)
livecode
Task condition
Determine what will be printed after executing the program and explain the reason.
func add(slice []string) {
slice = append(slice, "x")
}
func main() {
data := []string{"a", "b", "c"}
add(data[1:2])
fmt.Println(data)
}