length of array kotlin

fun main() {
    val array = arrayOf(1, 2, 3, 4, 5)
    val length = array.size
    println("Length of the array: $length")
}