What is the ?? operator
The Swift Programming Language (Swift 4.1)
I was reading the book The Swift Programming Language (Swift 4.1) by apple and I got to a part where it talks about the ?? operator:
Expert
Another way to handle optional values is to provide a default value using the ?? operator. If the optional value is missing, the default value is used instead.
Excerpt From: Apple Inc. “The Swift Programming Language (Swift 4.1).” iBooks. https://itunes.apple.com/us/book/the-swift-programming-language-swift-4-1/id881256329?mt=11
Problem
Optional Values
In the expert it says that the ?? operator is for a optional value I was wondering what it does for a Optional Value.
What it does
So the other thing I wanted to know is what does the ?? operator do.