What does this program print?

from Methods
Go 1.27 beginner 2 min

What does this program print?

Go
package main

import "fmt"

type Score struct{ Value int }

func (score Score) Add(delta int) {
    score.Value += delta
}

func main() {
    score := Score{Value: 7}
    score.Add(3)
    fmt.Println(score.Value)
}
Open in playground
Report an error