What does this program print?

from Slices
Go 1.27 intermediate 2 min

What does this program print?

Go
package main

import "fmt"

func main() {
    base := []int{10, 20, 30, 40}
    view := base[1:3]
    copyHeader := view
    copyHeader[0] = 99
    copyHeader = append(copyHeader, 50)
    fmt.Println(base)
    fmt.Println(view)
}
Open in playground
Report an error