C, c++C++, C#, Java, as well as many other statically typed languages have the type before variable like (int a =5int a =5, auto c = 4auto c = 4, etc.).
Non-statically typed languages (such as Javascript, basic) use var var (or letlet) before the name (var a = "asd"var a = "asd")
Why does Kotlin, a statically typed language, use a mixture (var i: Intvar i: Int)?
Why not define it as (Int i = 5Int i = 5)? It's a bit less typing and I don't see the advantage in form #2?