Answers for "concatenate var in string swift"

1

swift string concatenation

let age = 28
let name = "John"
let isAlcoholic = true

var description = "\(name) is \(age) years old and \(isAlcoholic ? "is" : "isn't") alcoholic"
Posted by: Guest on February-22-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language