Ask coding questions

← Back to all posts
What am I doing wrong?
svsarahval (1)

I follow the instructions from the video on how to type in code in swift for something simple as stating my name, in a string concatenate. Please someone explain it to me I am new to this.

Answered by SixBeeps (3777) [earned 5 cycles]
View Answer
SixBeeps (3777)

String concatenation is just combining strings. You do it by using the + operator on two strings. For example, "Hello, " + "Sarah" results in the string "Hello, Sarah".

svsarahval (1)

Sorry wanted to respond a long time ago, thank you. It was not working for me to do, but i will try again. Thanks again! @SixBeeps