Complete the code to declare a variable named age with value 30.
var age [1] = 30
string type for a number.In Go, int is used to declare integer variables like age which holds whole numbers.
Complete the code to assign the value 100 to the variable score.
var score int score [1] 100
== instead of = for assignment.:= when variable is already declared.The single equals sign = is used to assign a value to a variable in Go.
Fix the error in the code to declare and assign variable name with value "Alice".
var name [1] = "Alice"
The variable name holds text, so its type must be string.
Fill both blanks to declare a variable height of type float64 and assign it the value 1.75.
var height [1] [2] 1.75
int type for decimal numbers.:= when variable is declared with var.Use float64 for decimal numbers and = to assign the value.
Fill all three blanks to declare and assign a variable isActive of type bool with value true.
var [1] [2] [3] true
int type for boolean values.Declare the variable name isActive, type bool, and assign it true using =.
