iOS 12 Programming for Beginners
上QQ阅读APP看书,第一时间看更新

Variables and constants – where data is held

Variables and constants are like containers that contain any data. When you want to declare a variable, you have to use the var keyword. Let's declare each of the data types we did earlier, but, this time, using variables and constants instead.