This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: Control Flow | |
// MARK: if / else if / else | |
var numberTest = 3 | |
if numberTest < 1 { | |
print ("true") | |
} else if numberTest == 2 { | |
print ("equals two") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Darwin | |
// MARK: Operators | |
// = : Assignment | |
// + : Addition | |
// - : Subtraction | |
// * : Multiplication | |
// / : Division | |
// % : Modulus, Divison returning the remainder | |
// += : Addition followed by an assigment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: Playground - noun: a place where people can play | |
import UIKit | |
// Constants - Not Mutable, unchanging | |
let constantString = "Hello" | |
// Typed Constant |