variable in Kotlin

When declare a variable in Kotlin, using code like:
```
var x = 5
```
the value you’re assigning to the variable is used to create a new object. The compiler knows that 5 is an integer, and so the code creates a new Int object with a value of 5.
The compiler then uses the type of the object for the type of the variable. In the above example, the object’s type is Int, so the variable’s type is Int as well.
When an object is assigned to a variable, the object itself doesn’t go into the variable. A reference to the object goes into the variable instead.