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

Code Example 1

fun main() {
  val userinput = readLine()
}

Learn ReactJs, React Native from akashmittal.com