The output is..

Report a typo

What will be the console output of the following function?

fun main() {
    val map = mapOf<String, Int>().toMutableMap()
    map["Robert"] = 1500
    map["Rob"] = 1000
    map.remove("Robert")
    map["Rob"] = 1
    map.clear()
    map += "Robert" to 1500
    println(map)
}
Select one option from the list
___

Create a free account to access the full topic