Swift: Escaping a variable

This entry is part 5 of 41 in the series Swift

Here number is a variable, to put the variable number inside a quoted string, we need to escape it using \.

import UIKit


var number = 2

print("The number now is \(number). ")

swift