Variables in Swift

The first thing we do in any programming language is create variables. So lets get started. In Swift we do this by using a keyword “var“. ┬áThe variable name is generally camelCased using lowercase first letter, e.g areaOfCircle; preimeterOfSquare; surfaceArea etc.

The first question you will have is do we need to mention its type before we assign a …