xxxxxxxxxx
val myNum = 5 // Int
val myDoubleNum = 5.99 // Double
val myLetter = 'D' // Char
val myBoolean = true // Boolean
val myText = "Hello" // String
val myNum: Int = 5 // Int
val myDoubleNum: Double = 5.99 // Double
val myLetter: Char = 'D' // Char
val myBoolean: Boolean = true // Boolean
val myText: String = "Hello" // String
xxxxxxxxxx
val firstName: String = "Chike"
val variable name: Typeofthevariable = TheValueofyourvariable
xxxxxxxxxx
val name = ”Marcin” // Can't be changed
var age = 5 // Can be changed
age++
xxxxxxxxxx
// 1
val question = "What's your name?"
// 2
val question: String = "What's your name?"
// 3
var question: String = "What's your name?"