Type Inference
In the previous examples, you clearly spelled out the data type for both the
variables and the constants. However, Xcode can figure this out for you
based on what value you assign to the variable or constant. This is called
type inference. This means you could have omitted the :String from your
declarations and instead use something like Listing 2-6.