concatenation in swift code example
Example 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"
Example 2: concatenate string swift
let string1 = "hello"
let string2 = " there"
var welcome = string1 + string2 // hello there