What is the purpose of the let() function in Kotlin?
A. To create a new instance of a class
B. To modify the properties of an existing instance of a class
C. To perform mathematical calculations
D. To perform a null-check and execute code only if the value is not null
Answer: Option D

Join The Discussion