What is the purpose of the Elvis operator in Kotlin?
A. To assign a default value to a nullable variable if null
B. To assign a default value to a non-nullable variable if null
C. To concatenate two strings
D. To perform arithmetic operations
Answer: Option A

Join The Discussion