Kotlin has powerful type inference. While you can explicitly declare the type of a variable, you’ll usually let the compiler do the work by inferring it. Kotlin does not enforce immutability, though it is recommended. In essence use val over var. var a: String = "initial" println(a) val b: Int = 1 val c = 3 Declares a mutable variable and initializing it. Declares an immutable variable and initializing it. Declares an immutable variable and initializing it without specifying the type. The compiler infers the type Int. var e: Int println(e) Declares a variable without initialization. An attempt to use the variable causes…