fun main() { val name: String? = null // ?. yields null, ?: replaces it println(name?.uppercase() ?: "unknown") }
safe call then a default