Basics: Type Annotations

Var welcomeMessage: String
WelcomeMessage = "Hello"

Additional information

  • To be clear about the kind of values the constant or variable can store.
  • The colon means “…of type…,”.

Basics: Type Annotations — Structure map

Clickable & Draggable!

Basics: Type Annotations — Related pages: