Check out example codes for "mutable parameters kotlin". It will help you in understanding the concepts better.

Code Example 1

fun a(b: Int) {
   var b = b
   b++ // this compiles
}

Learn ReactJs, React Native from akashmittal.com