Check out example codes for "declare empty string in swift". It will help you in understanding the concepts better.

Code Example 1

// Create a literal empty string
var emptyString = ""

// Create an optional string
var emptyVariable: String?  // This allows this variable to have a null value, or nil in swift

Learn ReactJs, React Native from akashmittal.com