Swift Vocabulary

Type Annotation A way of providing more information about a data type when it might be ambiguous. Use a colon then the type name. For example,

var diameter : Double = 2;

makes sure that diameter is a Double, when otherwise Swift might guess that it is an Int. Intro Lesson 9

Back First Random Next