Complete the code to declare a variable with an explicit type.
val name: [1] = "Alice"
The variable name is declared as a String type explicitly.
Complete the code to declare a variable with explicit integer type.
var age: [1] = 30
The variable age is declared as an Int type explicitly because it holds a whole number.
Fix the error in the explicit type declaration.
val isActive: [1] = trueThe variable isActive should be declared as Boolean type and assigned a Boolean value true without quotes.
Fill both blanks to declare a variable with explicit Double type and assign a decimal value.
var price: [1] = [2]
The variable price is declared as Double type to hold decimal numbers, and assigned the decimal value 19.99.
Fill all three blanks to declare a variable with explicit type and assign a value correctly.
val [1]: [2] = [3]
The variable isAvailable is declared as Boolean type and assigned the Boolean value false.