Swift Variable and Constants
Main Idea
- Store data
- Variable
- Data to change over time
- Var name = “Ted”
- Name = “Rebecca”
- Name = Keeley
- Data to change over time
- Constants
- Data to never change
- Let character = “Daphne”
- Data to never change
- Variable
- See Data
- Print
- print(character)
- Print
- Naming Style
- Camel case
- Let managerName
- Camel case
- Tips
- Prefer constants over names