Constants and Variables

Example:

var name = "Ted"
name = "Rebecca"

let user = "Daphne"

print(user) // Daphne

Strings

Example:

let actor = "Tom Cruise"
let actorWithEmoji = "Tom Cruise 🏃‍♂️"
let quote = "He tapped a sign saying \\"Believe\\" and walked away."
let movie = """
A day in
the life of an
Apple engineer
"""

print(actor.count) // 10
print(quote.hasPrefix("He")) // true
print(quote.hasSuffix("Away.")) // true