Check out example codes for "what is unit type used for in kotlin". It will help you in understanding the concepts better.

Code Example 1

	Unit is used when the function basically return
    nothing of interest

// Example
val MyName = "Johnny"

fun SayHey(): Unit {
	println("Hi, " + MyName)

fun main() {

Learn ReactJs, React Native from