An Introduction to Swift Programming - Part One Flashcards
1
Q
//
I am a…
A
Comment
2
Q
var
is…
A
a variable
3
Q
let
is…
A
a constant
4
Q
Mutable
A
Can Change, (i.e. a variable
)
5
Q
Immutable
A
Does not change, (i.e. a constant
)
6
Q
Assignment Operators:
(Such as: +
)
A
An assignment operator takes the value on its righthand side and assigns it to the variable on its left-hand side.
7
Q
Naming Conventions
A
// Rule #1: Spaces not allowed
let
programmingLanguage = “Objective-C”
// Rule #2: Use camelCase
let
favoriteProgrammingLanguage = “Swift”