Quiz · Maps · lesson 7 of 9
Quiz — writing to a nil map
What happens when this program is built and run?
package main
import "fmt"
func main() {
var m map[string]int
fmt.Println(len(m))
m["a"] = 1
fmt.Println(m)
}Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.