Complete the code to declare a map from string to int.
var ages [1]The correct syntax to declare a map from string to int in Go is map[string]int.
Complete the code to initialize an empty map of string to int.
ages := [1]make with slice type instead of map type.new which returns a pointer, not a map.To create an empty map in Go, use make(map[string]int).
Fix the error in the map initialization code.
var ages = [1]To initialize a map with a literal, use map[string]int{}. Parentheses or brackets are incorrect here.
Fill both blanks to create a map with initial values.
scores := [1]{ "Alice": [2], "Bob": 90, }
The map type is map[string]int and the value for "Alice" is 85.
Fill all three blanks to create a map and add a new key-value pair.
items := [1]{ "pen": 5, "notebook": 10, } items[[2]] = [3]
The map type is map[string]int. The new key is "eraser" and the value is 3.
