let and var: Constantly Updating
In Swift, we store data values in constants and variables that are identified by the let keyword, for constants, and the var keyword, for variables. When you declare a variable with a let, you are required to provide a value at creation. A var does not require to have a value upon creation but if it is provided, it can be updated later without failure. Constant objects Let’s say we create instances of a struct and…