Answers for "concatenate two strings in swift"

1

concatenate 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 "concatenate two strings in swift"

Browse Popular Code Answers by Language