Question : swift string concatenation
Answered by : zealous-zebra-5bhcdrd3haet
let age = 28
let name = "John"
let isAlcoholic = true
var description = "\(name) is \(age) years old and \(isAlcoholic ? "is" : "isn't") alcoholic"
Source : | Last Update : Mon, 01 Mar 21
Question : Swift Join Two Strings
Answered by : samer-saeid
var greet = "Hello "
var name = "Jack"
// using the append() method
greet.append(name)
print(greet)
Source : | Last Update : Tue, 21 Jun 22