Stdle #142 · 2026-10-26
What does this log?
Read the snippet and type its exact console output. You get 4 attempts — each wrong guess unlocks a hint.
package main import "fmt" func main() { s := []int{1, 2, 3, 4} t := s[:2] t = append(t, 9) t[0] = 7 fmt.Println(s)}Slices