Associate a name with a value of a particular type.
Constants
Additional information
- The value can’t be changed once it’s set.
Variables
Additional information
- Can be set to a different value in the future.
Declaring Constants and Variables
Let maximumNumberOfLoginAttempts = 10
var currentLoginAttempt = 0
Additional information
- Must be declared before they’re used.
- You can’t declare it again with the same name, or change it to store values of a different type.