Answers for "how to join two strings in swift"

1

how to join two strings in swift

var greet = "Hello, "
let name = "Jack"

// using + operator
var result = greet + name
print(result)

//using =+ operator
greet +=  name
print(greet)
Posted by: Guest on May-07-2021

Code answers related to "how to join two strings in swift"

Browse Popular Code Answers by Language