Google News
logo
Swift - Interview Questions
Explain the use of double question mark ‘??’.
It is used to provide the default value for the variable.
 
let missingN1 : String? = nil
 
let realN1 : String = “Vikas”
 
let existentN1 : String = missingN1 ?? realN1
Advertisement