Skip to main content

Swift Programming Basics - Constants - Part 3

·48 words·1 min· loading · loading ·
Author
Peter Entwistle
Senior iOS Developer, with a passion for technology and gardening. Trying to push the boundaries of what can be grown in the UK.

In this third video I show you how constants work in Swift, and explain why they are important.

Video
#

Code
#

Constants.swift
1
2
3
4
5
var str = "Hello, youtube"

let name = "Peter"

let a: Int = 42

View on GitHub

Download the code