Junior — Senior
Error detection in the 'when' construct
livecode
Task condition
Find the flaws in the following code snippet.
private val sampleString = "fourth"
fun main() {
val result = when (sampleString) {
"first" -> println("ok_first")
"second" -> println("ok_second")
"third" -> println("ok_third")
}
println(result)
}